http://msdn.microsoft.com/ru-ru/library/system.math.aspx


В блоке формула пишите Math.Abs(число)