Extracted from Pike v8.0 release 28 as of 2015-08-03.
   

Method round()


Method round

float round(int|float f)

Description

Return the closest integer value to f.

Note

round() does not return an int, merely an integer value stored in a float.

See also

floor(), ceil()