Add more info to the pets page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user