1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-11-04 18:08:31 -08:00

Keep 15 additional decimal places.

This commit is contained in:
Arthur Drobot 2017-07-31 23:16:37 -07:00
parent f97d16c640
commit 1ee8c7d231

View File

@ -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();
}
}