@porscheinformatik/clr-addons 10.5.0 → 10.5.1

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.
@@ -2579,7 +2579,7 @@
2579
2579
  ClrNumericField.prototype.roundOrTruncate = function (value) {
2580
2580
  var method = this.roundValue ? 'round' : value < 0 ? 'ceil' : 'floor';
2581
2581
  // 16 is the highest precision before numbers have weird behaviour. see https://stackoverflow.com/q/21472828/15120942
2582
- return Math[method](+(value * Math.pow(10, this.decimalPlaces)).toPrecision(16)) / Math.pow(10, this.decimalPlaces);
2582
+ return Math[method](+(value * Math.pow(10, this.decimalPlaces)).toPrecision(15)) / Math.pow(10, this.decimalPlaces);
2583
2583
  };
2584
2584
  return ClrNumericField;
2585
2585
  }());