Number format

Some actions from the Formatter add-on lets you provide a custom number format. Here are a few examples of the formats you can use:

FormatResult
#,###.001,234.56
#.###,001.234,56
#.01234.5
#.00001234.5678
$ #,###.00$ 1,234.56
#.###,00€1.234,56€
#,###1,234
#1234

Supported formats

The number format supports the character # for the integer part and the character 0 for the fractional part:

FormatDescriptionExample
#The integer part without separator1000000
#,###The integer part with separator1,000,000
0The fractional part without separator and 1 decimal (The number of 0s define the number of decimals)1
.00The fractional part with separator and 2 decimals.11
.0000The fractional part with separator and 4 decimals.1111
#,###.00Number with separators and 2 decimals1,000,000.11

In addition you can add prefixes and sufixes to the number format.

FormatDescriptionExample
$#,###.00Number with a prefix$1,000,000.11
$ #,###.00Number with a prefix separated$ 1,000,000.11
Total: #,###.00Number with letters as prefixTotal: 1,000,000.11
#,###.00€Number with a sufix1,000,000.11€
#,###.00 €Number with a sufix separated1,000,000.11 €
#,###.00 to payNumber with letters as sufix1,000,000.11 to pay

Negative numbers

The number format will keep negative numbers adding the minus symbol to the formatted value:

FormatResult
#,###.00-1,234.56
#.0-1234.5
$ #,###.00$ -1,234.56
#.###,00€-1.234,56€