@osimatic/helpers-js 1.1.66 → 1.1.68

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/duration.js CHANGED
@@ -175,7 +175,7 @@ class Duration {
175
175
  }
176
176
 
177
177
  static getNbMinutesOfHundredthOfAnHour(durationAsHundredthOfAnHour) {
178
- return Math.floor(Math.getDecimals(Math.roundDecimal(durationAsHundredthOfAnHour, 2)) / 100 * 60);
178
+ return Math.floor(Math.getDecimals(Number.roundDecimal(durationAsHundredthOfAnHour, 2)) / 100 * 60);
179
179
  }
180
180
 
181
181
 
package/number.js CHANGED
@@ -88,7 +88,7 @@ Number.roundDecimal = Number.roundDecimal || function(number, precision) {
88
88
  }
89
89
 
90
90
  Math.getDecimals = Math.getDecimals || function(number) {
91
- return parseInt((number+"").split(".")[1]);
91
+ return parseInt((number+"").split(".")[1] || 0);
92
92
  }
93
93
 
94
94
  if (!Number.random) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.1.66",
3
+ "version": "1.1.68",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"