04.07.2024, 09:23
Two solutions:
Code:
value = 1.235
numvalue = math.round(value, 2) -- numeric value that can be used in further calculations
strvalue = string.format('%.2f', value) -- string value