Caplin Trader 4.7.1

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%":

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