On 23-7-2010 10:53, Vnpenguin wrote:
\startformula
K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format("%0.2f",355/14))} \stopformula
or \ctxlua{context("\letterpercent0.2f",355/14)} we can consider adding \let\pct\letterpercent but nice is: \ctxluacode{context("%0.2f",355/14)} i'll add this but keep in mind that this will only work in the text stream, not in macro definitions or as arguments Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------