real class : Round() method
Description
Gets an new instance of the real type that has the nearest integral value to the instance value.
Syntax
realInstance.Round()
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.Round();
Notes
It's a wrapper of the System.Math.Round(Double).