On 8/27/2017 9:15 PM, Procházka Lukáš Ing. wrote:
Hello,

is there a built-in (Lua-?)numeric format to produce big numbers with spaces delimiting thousands (widely used for currencies)?

E.g.:

----
\cldcontext{string.format("%[separate-thousands].0f", 1234567.0)} % To give: "1 234 567.00"
there is some code deep down but it's in a module ... i'll move that to the converters namespace

Hans


-----------------------------------------------------------------
                                          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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to