diff options
author | nea <nea@nea.moe> | 2023-06-11 04:00:29 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-11 04:00:51 +0200 |
commit | 99fcad8360c3ac7755d70e581c6e2d63e8c49282 (patch) | |
tree | 1318d2a54a32d5f7b71442fa37bf788800119237 /src/main/kotlin/moe/nea/firmament/util | |
parent | db8e3640e8f9c14b7027c9e92b810ed127391ced (diff) | |
download | Firmament-99fcad8360c3ac7755d70e581c6e2d63e8c49282.tar.gz Firmament-99fcad8360c3ac7755d70e581c6e2d63e8c49282.tar.bz2 Firmament-99fcad8360c3ac7755d70e581c6e2d63e8c49282.zip |
Add more info to the pets page
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/util')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/util/FirmFormatters.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/util/FirmFormatters.kt b/src/main/kotlin/moe/nea/firmament/util/FirmFormatters.kt index 73ef121..ba77b04 100644 --- a/src/main/kotlin/moe/nea/firmament/util/FirmFormatters.kt +++ b/src/main/kotlin/moe/nea/firmament/util/FirmFormatters.kt @@ -4,6 +4,7 @@ import com.google.common.math.IntMath.pow import kotlin.math.absoluteValue object FirmFormatters { + fun toString(float: Float, fractionalDigits: Int): String = toString(float.toDouble(), fractionalDigits) fun toString(double: Double, fractionalDigits: Int): String { val long = double.toLong() val δ = (double - long).absoluteValue |