04.07.2024, 09:13
Hi,
It's possible with scripts to do a math.round with 2 decimal points ?
best regards.
It's possible with scripts to do a math.round with 2 decimal points ?
best regards.
Math round with 2 decimal points
|
04.07.2024, 09:13
Hi,
It's possible with scripts to do a math.round with 2 decimal points ? best regards.
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 |
« Next Oldest | Next Newest »
|