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