Real.Round

Parent Previous Next

Real.Round.

Rounds the value to the closest whole number.


Syntax.


 Round() : Real

 


Example:


 Real r;

 r := (1.5).Round();   //Now r == 2.0;

 r := (1.49).Round();  //Now r == 1.0;

 r := (-1.49).Round(); //Now r == -1.0;

 r := (-1.5).Round();  //Now r == -2.0;