Real.Trunc

Parent Previous Next

Real.Trunc.

Truncates the value - removing the decimal part.


Syntax.


 Round() : Real

 


Example:


 Real r;

 r := (1.5).Trunc();   //Now r == 1.0;

 r := (-1.5).Trunc();  //Now r == -1.0;