toFloat
TO_FLOAT0xBBDA792448DB5A89The GTA V native TO_FLOAT of the BUILTIN namespace, as LS:MP client scripts call it: the global function toFloat, in JavaScript and in Lua.
toFloat(value: number): numbertoFloat(value: integer): numberUsage
JavaScript
const result = toFloat(value);Lua
local result = toFloat(value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
value | int | number | integer |
Returns
float JavaScript number, Lua numberReference
- Namespace
- Built-in BUILTIN
- In the game
float TO_FLOAT(int value)- Hash
0xBBDA792448DB5A89