Caplin Trader 5.1.0

Class: module:br-formatting/PercentFormatter

module:br-formatting/PercentFormatter()

Converts the number to a percentage.

PercentFormatter is typically used with Presenter, but can be invoked programmatically as in the following example which evaluates to "61.8%":

PercentFormatter.format(0.618, {dp:1})