Skip to end of banner
Go to start of banner

Formatting Options for Numeric Columns

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

On this page

Overview

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 add-on.

Version 6.4 extended the support to provide the ability to force the format on the view of the data rows (FF and 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. 

Usage

The Formatting Options listed on this page can be defined through the Column Types parameter within the following Macros:

Screenshot

Formatting Options

Acknowledgement

Advanced numeric formatting support is provided using javascript implemented by the Table Library for Bob Swift Add-ons 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.

Examples

The following example shows how numeric values can be converted in total rows:

Internationalization

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:


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

  • No labels