Constructor
new module:br-formatting /Significant Figures Formatter()
- Implements:
Methods
format(vValue, mAttributes)
Formats a number to the specified number of significant figures.
Attribute Options:
Option | Description |
---|---|
sf | the number of significant figures to apply (does nothing if omitted). |
Parameters:
Name | Type | Description |
---|---|---|
vValue |
Variant | the number (String or Number type). |
mAttributes |
Map | the map of attributes. |
- Implements:
Returns:
the number, formatted to the specified precision.