juh+ntg-context--- via ntg-context schrieb am 14.11.2024 um 09:18:
Am 14.11.24 um 08:59 schrieb juh+ntg-context--- via ntg-context:
\starttext \startluacode context(string.formatters["%0.2M"](1000)) \stopluacode \stoptext
Gives 10.2000,00
context(string.formatters["%M"](1000))
Gives the right result. But I am still confused. You can't specify the precision but it's possible to set the thousand separator (no idea for the rule what can be used as separator).
\starttext \cldcontext{string.formatters["\letterpercent .m"](1)} \cldcontext{string.formatters["\letterpercent .m"](10)} \cldcontext{string.formatters["\letterpercent .m"](100)} \cldcontext{string.formatters["\letterpercent .m"](1000)} \cldcontext{string.formatters["\letterpercent .m"](10000)} \cldcontext{string.formatters["\letterpercent .m"](100000)} \cldcontext{string.formatters["\letterpercent .m"](1000000)} \cldcontext{string.formatters["\letterpercent .m"](10000000)} \cldcontext{string.formatters["\letterpercent .m"](100000000)} \stoptext Wolfgang