04.07.2024, 09:23
Two solutions:
Code:
1234
value = 1.235
numvalue = math.round(value, 2) -- numeric value that can be used in further calculations
strvalue = string.format('%.2f', value) -- string value
Math round with 2 decimal points
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
Math round with 2 decimal points - by joaodaniel.pereira - 04.07.2024, 09:13
RE: Math round with 2 decimal points - by admin - 04.07.2024, 09:23
|