From c7136f903aee8b6570a400250ab7213f9d8ba513 Mon Sep 17 00:00:00 2001 From: Arthur Drobot Date: Mon, 31 Jul 2017 23:16:37 -0700 Subject: [PATCH] Keep 15 additional decimal places. --- src/main/java/org/nwapw/abacus/number/PreciseNumber.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/nwapw/abacus/number/PreciseNumber.java b/src/main/java/org/nwapw/abacus/number/PreciseNumber.java index ebf14d5..005438b 100755 --- a/src/main/java/org/nwapw/abacus/number/PreciseNumber.java +++ b/src/main/java/org/nwapw/abacus/number/PreciseNumber.java @@ -45,7 +45,7 @@ public class PreciseNumber implements NumberInterface { @Override public int getMaxPrecision() { - return 54; + return 65; } @Override @@ -115,7 +115,7 @@ public class PreciseNumber implements NumberInterface { @Override public String toString() { - BigDecimal rounded = value.setScale(getMaxPrecision() - 4, RoundingMode.HALF_UP); + BigDecimal rounded = value.setScale(getMaxPrecision() - 15, RoundingMode.HALF_UP); return rounded.stripTrailingZeros().toPlainString(); } }