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-08-08 02:25:22 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-08 02:25:22 +0200
commit7b6aac3ea8b7aebaef104097b0ac7767b27f4c80 (patch)
tree7b9e068b912256f1bfccbc717517d17aa62542b8 /src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt
parent2ac1f3d037fee016063cd7bc499d4abcfeb765d5 (diff)
downloadskyhanni-7b6aac3ea8b7aebaef104097b0ac7767b27f4c80.tar.gz
skyhanni-7b6aac3ea8b7aebaef104097b0ac7767b27f4c80.tar.bz2
skyhanni-7b6aac3ea8b7aebaef104097b0ac7767b27f4c80.zip
code cleanup utils
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 6db35d2af..efdb545d2 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt
@@ -43,7 +43,7 @@ object NumberUtil {
fun format(value: Number): String {
@Suppress("NAME_SHADOWING")
val value = value.toLong()
- //Long.MIN_VALUE == -Long.MIN_VALUE so we need an adjustment here
+ //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 small numbers