Formatting options for numeric columns - 8.x


Numeric values within total rows (of numeric table columns) can be formatted to look like currency, percentages, times, or plain numbers with decimal places, thousands, and abbreviations. This functionality was introduced in version 6.2 of the Advanced Tables for Confluence app.

Version 6.4 extended the support to provide the ability to force the format on the view of the data rows (Numeric with data formatting (FF) and Date (M) formats). The actual data is not changed, just how it is displayed. This helps to keep the data looking consistent even if the provided data is not. The Column types parameter is used to specify what type of formatting is done. 


The formatting options listed on this page can be defined through the Column types parameter within the following macros:


Formatting options


Advanced numeric formatting support is provided using JavaScript implemented by the Table Library for Bob Swift Apps with the help of the Numerals.js library (open source, MIT license). A summary of the relevant parts of the Numerals.js documentation is repeated here.


Formatting the Auto Total row for numeric columns example shows how numeric values can be converted in total rows.


The format can be automatically switch to support various international differences by adding a language parameter to the format.

A list of the languages available and their specification is available here.

 For example: