diff options
author | nea <romangraef@gmail.com> | 2022-07-05 12:25:48 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-07-05 12:25:48 +0200 |
commit | bcd0fa2745f5c5b144c36217d3f32a340dea2259 (patch) | |
tree | 9e80db0791652c5dc3d31f2df105b5a54a0ba8ee /src/main/java | |
parent | 5c2f9513f056f9074966f181683ef6b2c6e10791 (diff) | |
download | NotEnoughUpdates-bcd0fa2745f5c5b144c36217d3f32a340dea2259.tar.gz NotEnoughUpdates-bcd0fa2745f5c5b144c36217d3f32a340dea2259.tar.bz2 NotEnoughUpdates-bcd0fa2745f5c5b144c36217d3f32a340dea2259.zip |
also add t
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java index 89befec7..3b6a71f6 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java @@ -270,9 +270,12 @@ public class Calculator { case "m": values.push(p.multiply(new BigDecimal(1_000_000)).setScale(2, RoundingMode.HALF_UP)); break; - case "t": + case "b": values.push(p.multiply(new BigDecimal(1_000_000_000)).setScale(2, RoundingMode.HALF_UP)); break; + case "t": + values.push(p.multiply(new BigDecimal("1000000000000")).setScale(2, RoundingMode.HALF_UP)); + break; default: throw new CalculatorException( "Unknown operation " + command.operatorValue, |