real class : Round2() method
Description
Gets an new instance of the real type that has the nearest integral value to the instance value.
Syntax
realInstance.Round2()
Arguments
None
Return value
Class | Description |
real | An new instance of the real type that has the nearest integral value to the instance value. |
Sample code
//anyReal is a instance of real type.
real newInstance = anyReal.Round2();
Notes
It's a wrapper of the System.Math.Round(Double,MidpointRounding).