On 10/15/2024 2:33 PM, juh+ntg-context--- via ntg-context wrote:
Am 15.10.24 um 12:42 schrieb Henning Hraban Ramm:
I guess you know the cld-mkiv manual?

I know that it is there. ;-)

I'll try to reimplement the document with cld.

First question:

local sum = string.format("%0.2f", (0.3 * 100))

Gives 30.00

how do I get 30,00

local sum = string.formatters["%0.2M"](0.3 * 100)

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to