This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

Number Currency Formats

Number-type data can be formatted (v6.2.1) using the format() or .format() operators:

$ for local currency. When formatting numbers format("$") and .format("$") apply conventional formatting for your local currency – for example, "$1,063.52" from number 1063.52. Usage:

$MyString = $MyPrice.format("$") 

$0 for rounded local currency. The second character is a zero and not letter 'o'. When formatting numbers format("$0”) and .format("$0”) apply conventional formatting for your local currency, rounding to the nearest currency unit – for example, "$1,064" from number "1064.32".

From v6.3.0, the above currency format converters will use explicitly-set locales, rather than be fixed the user's default system locale.

A Tinderbox Reference File : Formatting : Number Currency Formats