Built-inClient

round

ROUND0xF2DB717A73826179

The GTA V native ROUND of the BUILTIN namespace, as LS:MP client scripts call it: the global function round, in JavaScript and in Lua.

SignatureJavaScript
round(value: number): number
SignatureLua
round(value: number): integer

Usage

JavaScript
const result = round(value);
Lua
local result = round(value)

Parameters

ParameterTypeJavaScriptLua
valuefloatnumbernumber

Returns

int JavaScript number, Lua integer

Reference

Namespace
Built-in BUILTIN
In the game
int ROUND(float value)
Hash
0xF2DB717A73826179

Open in the interactive natives reference