Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by esx-framework.github.io #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+1 =