Documentation
›
API Reference
›
Object
›
Math
Round
Lua
C++
This function rounds a decimal value off to the nearest integer.
Syntax
static float
Round
(const float f)
Parameters
f:
the input value.
Returns
Returns the input value rounded off to the nearest integer.