Thursday, June 7, 2018

Math.Round Method (Double)

Rounds a double-precision floating-point value to the nearest even integral value.
examples: 
Console.WriteLine(Math.Round(6.5)); => 6
Console.WriteLine(Math.Round(11.5)); => 12

No comments:

Post a Comment