Rounding up lower values to one closest number

How do you round up numbers like 0.92323 to 92? Like can you make an example or give out the module to do it.

Do you mean rounding numbers to the hundredth?

local rounded = math.round(number * 100) / 100

Like rounding up to where the hundredth becomes like for example

.9333 = 93 not .93

Oh gotcha, you can just multiply it by 100 and not divide it then:

math.round(0.923322 * 100)
1 Like