fable 3.1.21 → 3.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -152,7 +152,7 @@ class FableServiceMath extends libFableServiceBase
|
|
|
152
152
|
toFixedPrecise(pValue, pDecimals, pRoundingMethod)
|
|
153
153
|
{
|
|
154
154
|
let tmpValue = isNaN(pValue) ? 0 : pValue;
|
|
155
|
-
let tmpDecimals = isNaN(pDecimals) ? 0 : pDecimals;
|
|
155
|
+
let tmpDecimals = isNaN(pDecimals) ? 0 : parseInt(pDecimals, 10);
|
|
156
156
|
let tmpRoundingMethod = (typeof (pRoundingMethod) === 'undefined') ? this.roundHalfUp : pRoundingMethod;
|
|
157
157
|
|
|
158
158
|
let tmpArbitraryValue = new this.bigNumber(tmpValue);
|