Kenno’s OpenNote

C# Math.Round

Posted in C# by kenno on June 23, 2009

This is just a quick note to remind myself:

Math.Round(4.4); //Returns 4.0.
Math.Round(4.5); //Returns 4.0.
Math.Round(4.6); //Returns 5.0.

Credit: Math.Round Method

Tagged with: ,