11.02.2020, 12:18
You can use string.format to convert floating point number to a string with fixed decimals places in your html report:
Code:
num = 12.3456789
val = string.format('%.3f', num) -- 3 decimal places
log(val) -- will output 12.346