aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-07-05 12:25:48 +0200
committernea <romangraef@gmail.com>2022-07-05 12:25:48 +0200
commitbcd0fa2745f5c5b144c36217d3f32a340dea2259 (patch)
tree9e80db0791652c5dc3d31f2df105b5a54a0ba8ee /src/main/java
parent5c2f9513f056f9074966f181683ef6b2c6e10791 (diff)
downloadNotEnoughUpdates-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.java5
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,