Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  real  >  Round2()
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

ClassDescription
realAn 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).

Links for reference

Copyright © Rice All rights reserved.