24 Oct
2009
24 Oct
'09
4:59 p.m.
Dear Sirs, I'm looking a way to format float numbers. For example \ctxlua{text.print(sqrt(2))} give me 1.41421356237309504880 but i want 1.414. Is there a way to format real numbers. Note: I had tried \ctxlua{a = sqrt(a) ; aformat = string.format("0.3%f", a) ; text.print(aformat)} but that don't work because the % character thanks a lot Have a nice day jorge