[back] [prev] [next] [index] [root]

 


Round

Returns the integer closest to a given number. Note that if the decimal part of the number given is .5, then the number is rounded up. If the number is negative, it is rounded down.

Syntax:

y := Round(x);

integer
  y  
real
  x  

See also:  Trunc, Floor, Ceil

Description:

no detailed description available yet


Example:


kash> Round(1.4);
1
kash> Round(-1.4);
-1
kash> Round(1.5);
2
kash> Round(-1.5);
> -2


<- back[back] [prev] [next] [index] [root]