Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua round number

local number = 15.57
local number2 = 15.23

print(math.floor(number + 0.5)) --16
print(math.floor(number2 + 0.5)) --15
 
PREVIOUS NEXT
Tagged: #lua #number
ADD COMMENT
Topic
Name
2+6 =