Caplin Trader 4.0.1

Class: module:br/presenter/formatter/PercentFormatter

module:br/presenter/formatter/PercentFormatter

Summary

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.presenter.formatter.PercentFormatter.format(0.618, {dp:1})