This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Datatype values
#3
(11.02.2020, 12:18)admin Wrote: 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

Thanks that did it Big Grin
Reply


Messages In This Thread
Datatype values - by MarcusH - 11.02.2020, 12:11
RE: Datatype values - by admin - 11.02.2020, 12:18
RE: Datatype values - by MarcusH - 11.02.2020, 13:25

Forum Jump: