@phensley/decimal
Advanced tools
Comparing version 0.25.5 to 0.25.6
@@ -268,3 +268,3 @@ import { add, divide, multiply, subtract, trimLeadingZeros, DivMod } from './math'; | ||
? (v.precision() - u.precision()) + scaleprec + 2 | ||
: v.precision() + u.precision() + scaleprec + 2; | ||
: v.precision() + u.precision() + Math.abs(scaleprec) + 2; | ||
var exp = (u.exp - v.exp) - shift; | ||
@@ -271,0 +271,0 @@ if (shift > 0) { |
@@ -270,3 +270,3 @@ "use strict"; | ||
? (v.precision() - u.precision()) + scaleprec + 2 | ||
: v.precision() + u.precision() + scaleprec + 2; | ||
: v.precision() + u.precision() + Math.abs(scaleprec) + 2; | ||
var exp = (u.exp - v.exp) - shift; | ||
@@ -273,0 +273,0 @@ if (shift > 0) { |
{ | ||
"name": "@phensley/decimal", | ||
"version": "0.25.5", | ||
"version": "0.25.6", | ||
"description": "Arbitrary precision decimal math", | ||
@@ -65,3 +65,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "4066c30580c5d4dffd9261c1a989aff283a899ea" | ||
"gitHead": "33201bc0ca4e03b576b5a8bdd8bb3f9eb543024d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
249884