diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index f82a165e..9366091c 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2953,7 +2953,8 @@ merge(Compressor.prototype, { && typeof result == "number" && (this.operator == "+" || this.operator == "-")) { var digits = Math.max(0, decimals(left), decimals(right)); - if (digits < 21) return +result.toFixed(digits); + // 53-bit significand => 15.95 decimal places + if (digits < 16) return +result.toFixed(digits); } return result; |