Returns a number rounded to the nearest integer.
[Visual Basic] Public Shared Function Rint( _ ByVal a As Double _ ) As Long [C#] public static long Rint( double a ); [C++] public: static __int64 Rint( double a ); [JScript] public static function Rint( a : double ) : long;
a rounded to the nearest integer. If a is exactly halfway between two whole numbers, this method returns the the integer that is even (i.e., Rint rounds up to the even number).
Math.Rint (4.4) returns 4.0. Math.Rint (4.5) returns 5.0. Math.Rint (4.6) returns 5.0.