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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fable",
3
- "version": "3.1.21",
3
+ "version": "3.1.22",
4
4
  "description": "A service dependency injection, configuration and logging library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -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);