Am 15.10.24 um 17:16 schrieb Hans Hagen via ntg-context:
On 10/15/2024 2:33 PM, juh+ntg-context--- via ntg-context wrote:

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

This does not work here with numbers with more than three digits.

\starttext
\startluacode
context(string.formatters["%0.2M"](1000))
\stopluacode
\stoptext

Gives 10.2000,00

juh
___________________________________________________________________________________
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