ish-ui 1.2.4 → 1.2.5

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.
@@ -5,17 +5,17 @@
5
5
  import { Decimal } from 'decimal.js-light';
6
6
  export const decimalMul = (...args) => args
7
7
  .reduce((p, c) => p.mul(c || 0), new Decimal(1))
8
- .toDecimalPlaces(2)
8
+ .toDecimalPlaces(2, Decimal.ROUND_HALF_EVEN)
9
9
  .toNumber();
10
10
  export const decimalPlus = (...args) => args
11
11
  .reduce((p, c) => p.plus(c || 0), new Decimal(0))
12
- .toDecimalPlaces(2)
12
+ .toDecimalPlaces(2, Decimal.ROUND_HALF_EVEN)
13
13
  .toNumber();
14
14
  export const decimalMinus = (...args) => args
15
15
  .reduce((p, c) => new Decimal(p).minus(c))
16
- .toDecimalPlaces(2)
16
+ .toDecimalPlaces(2, Decimal.ROUND_HALF_EVEN)
17
17
  .toNumber();
18
18
  export const decimalDivide = (a, b) => new Decimal(a)
19
19
  .div(b)
20
- .toDecimalPlaces(2)
20
+ .toDecimalPlaces(2, Decimal.ROUND_HALF_EVEN)
21
21
  .toNumber();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ish-ui",
3
3
  "sideEffects": false,
4
- "version": "1.2.4",
4
+ "version": "1.2.5",
5
5
  "description": "UI elements for onCourse and other ish apps",
6
6
  "main": "main.ts",
7
7
  "devDependencies": {