diff options
author | Marko Zajc <marko@zajc.eu.org> | 2022-07-02 03:25:17 +0200 |
---|---|---|
committer | Marko Zajc <marko@zajc.eu.org> | 2022-07-02 03:25:17 +0200 |
commit | 952b64ef1871969dc57641bc34712e01209d78eb (patch) | |
tree | 2e875c7b87b8c748a430b6f108776ba2545b636a | |
parent | cfaff2747c6a7fdb502b41376a4aaa9dc5ae5440 (diff) |
Fix a minor display bug
-rw-r--r-- | src/main/java/libot/commands/CalculatorCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/libot/commands/CalculatorCommand.java b/src/main/java/libot/commands/CalculatorCommand.java index 9a550ff..7c2f58e 100644 --- a/src/main/java/libot/commands/CalculatorCommand.java +++ b/src/main/java/libot/commands/CalculatorCommand.java | |||
@@ -269,7 +269,7 @@ public class CalculatorCommand extends Command { | |||
269 | @Nonnull | 269 | @Nonnull |
270 | @SuppressWarnings("null") | 270 | @SuppressWarnings("null") |
271 | private static String parseResult(@Nonnull Result r) { | 271 | private static String parseResult(@Nonnull Result r) { |
272 | if (r.value().indexOf('=') != -1) { | 272 | if (r.value().indexOf('=') != -1 && r.value().indexOf('≈') != -1) { |
273 | if (r.approximate()) | 273 | if (r.approximate()) |
274 | return r.value().replace('=', '≈'); | 274 | return r.value().replace('=', '≈'); |
275 | else | 275 | else |