Constructor
new module:br-formatting /Truncate Decimal Formatter()
- Implements:
Methods
format(vValue, mAttributes)
Truncates the value to the specified number of decimal places. If the value has already fewer decimal places than the supplied attribute, then the value is not changed.
Attribute Options:
Option | Description |
---|---|
dp | the number of decimal places at which to truncate. |
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.