Singleton
caplin.element.formatter

AmountFormatter

Formats a number into an amount with a thousands, millions or billions token.

AmountFormatter is typically used in the XML Renderer Framework, but can be invoked programmatically as in the following example which evaluates to "1.23456789B" and "1.230B" respectively:

caplin.element.formatter.AmountFormatter.format(1234567890, {}) caplin.element.formatter.AmountFormatter.format(1234567890, {dp: 4})

Constructor Summary

Attributes Name and Description
caplin.element.formatter.AmountFormatter()

Constructor Detail

caplin.element.formatter.AmountFormatter()