PercentFormatter
is typically used in the XML Renderer Framework, but can be invoked programmatically
as in the following example which evaluates to "61.8%":
caplin.element.formatter.PercentFormatter.format(0.618, {dp:1})
Attributes | Name and Description |
---|---|
|
caplin.element.formatter.PercentFormatter()
|
Attributes | Name and Description |
---|---|
|
String
format(Variant vValue, Map mAttributes)
Converts a decimal number to a percentage. |
►
caplin.element.formatter.PercentFormatter()
►
String
format(Variant vValue, Map mAttributes)
Converts a decimal number to a percentage.
Variant | vValue | the decimal number (String or Number type). |
Map | mAttributes | a list of attributes, as specified in caplin.element.formatter.RoundingFormatter. |