WriteLine("Before:{0,-5} After:{1,-5}",x,Math.Abs(x)); which will display the following output on the monitor screen: Before: -2.0 After: 2.0 2.3.5 The Sign Method.