“Esx.math.round” Código de respuesta

Esx.math.round

local value - 5.444

print('value: ' .. value) -- returns 5.444
print('value rounded: ' .. ESX.Math.Round(value)) -- returns 5
print('value rounded: ' .. ESX.Math.Round(value, 1)) -- returns 5.4
ITZ A D O M

Esx.math.round

ESX.Math.Round(value, numDecimalPlaces)
ITZ A D O M

Esx.math.round

ESX.Math.Round(value, numDecimalPlaces)
Nattachai Pengnu

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código