Darwin Help

Back to Index

round

Function round


Calling Sequence  round(x)
Parameters
NameTypeDescription

x numeric 
Return Type  integer
Synopsis This function rounds the argument x to the nearest integer. For exact integers + 1/2, the rounding is done according to the next higher significant bit (IEEE standard).
Examples
> round(5.5555555);
6
> round(1.3);
1
> round(-7.8);
-8
See also ceil,   floor,   mod,   trunc