{"hash":"0xF2DB717A73826179","ns":"BUILTIN","name":"ROUND","slug":"ROUND","official":true,"named":true,"luaName":"Round","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"value","type":"float"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xF2DB717A73826179","gtaJhash":"0x323B0E24","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/BUILTIN/ROUND","markdownUrl":"https://natives.borderlinerp.com/natives/BUILTIN/ROUND.md","snippets":{"lua":"local retval = Round(value)","luaInvoke":"local retval = Citizen.InvokeNative(0xF2DB717A73826179, value, Citizen.ResultAsInteger())","js":"const retval = Round(value);","jsInvoke":"const retval = Citizen.invokeNative('0xF2DB717A73826179', value + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xF2DB717A73826179, value);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}