From bcd0fa2745f5c5b144c36217d3f32a340dea2259 Mon Sep 17 00:00:00 2001 From: nea Date: Tue, 5 Jul 2022 12:25:48 +0200 Subject: also add t --- .../java/io/github/moulberry/notenoughupdates/util/Calculator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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, -- cgit