round
ROUND0xF2DB717A73826179The GTA V native ROUND of the BUILTIN namespace, as LS:MP client scripts call it: the global function round, in JavaScript and in Lua.
round(value: number): numberround(value: number): integerUsage
JavaScript
const result = round(value);Lua
local result = round(value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
value | float | number | number |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Built-in BUILTIN
- In the game
int ROUND(float value)- Hash
0xF2DB717A73826179