Bulk commit
This commit is contained in:
@@ -2,6 +2,7 @@ package moe.nea.firmament.util
|
||||
|
||||
import com.google.common.math.IntMath.pow
|
||||
import kotlin.math.absoluteValue
|
||||
import kotlin.time.Duration
|
||||
|
||||
object FirmFormatters {
|
||||
fun toString(float: Float, fractionalDigits: Int): String = toString(float.toDouble(), fractionalDigits)
|
||||
@@ -13,4 +14,8 @@ object FirmFormatters {
|
||||
return long.toString() + (if (digits.isEmpty()) "" else ".$digits")
|
||||
}
|
||||
|
||||
fun formatTimespan(duration: Duration): String {
|
||||
return duration.toString()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user