Constructor
new module:br/formatting/RoundingFormatter()
- Implements:
- Source:
Methods
-
format(vValue, mAttributes)
-
Formats the number to the specified precision.
Attribute Options:
Option Description sf the number of significant figures to apply (optional) dp the number of decimal places to apply (optional) rounding the number of decimal places to be rounded, omitting any trailing zeros (optional) Parameters:
Name Type Description vValueVariant the number. mAttributesMap the map of attributes. - Implements:
- Source:
Returns:
the number, formatted to the specified precision.