aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-24 13:25:18 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-24 13:25:18 +0200
commit450a0a003d687ae16448734ebef25acfb17cdde4 (patch)
tree352f4e8965e6ae0da3596efcdc57f73b8461d495 /src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt
parent0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e (diff)
downloadskyhanni-450a0a003d687ae16448734ebef25acfb17cdde4.tar.gz
skyhanni-450a0a003d687ae16448734ebef25acfb17cdde4.tar.bz2
skyhanni-450a0a003d687ae16448734ebef25acfb17cdde4.zip
Fixed irrelevant spelling stuff
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt b/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt
index b34a5ca4b..6db35d2af 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt
@@ -46,7 +46,7 @@ object NumberUtil {
//Long.MIN_VALUE == -Long.MIN_VALUE so we need an adjustment here
if (value == Long.MIN_VALUE) return format(Long.MIN_VALUE + 1)
if (value < 0) return "-" + format(-value)
- if (value < 1000) return value.toString() //deal with easy case
+ if (value < 1000) return value.toString() //deal with small numbers
val (divideBy, suffix) = suffixes.floorEntry(value)
val truncated = value / (divideBy / 10) //the number part of the output times 10
val truncatedAt = if (suffix == "M") 1000 else 100