Tinderbox Forum

Formatting for currency with/without decimal places

This was being asked about (IIRC by @satikusala )—how do we format numbers for currency with or without the decimals? IOW 14.257 as “$14” or “$14.26”?

This was covered by changes in v6.2.1. A format string "$" makes a string, acknowledging your OS locale’s currency symbol ($, £, €, etc.) and thousands/decimal separator. Thus:

Code from the above for anyone wanting to do a quick test:


I’ve put this on the to-do list for aTbRef corrections.


aTbRef update. See Number.format().