fun formatPercentage()

in ruler-frontend/src/jsMain/kotlin/com/spotify/ruler/frontend/Formatting.kt [39:42]


fun formatPercentage(fraction: Number, total: Number): String {
    val percentage = PERCENT_FACTOR * fraction.toDouble() / total.toDouble()
    return "${percentage.asDynamic().toFixed(2)} %"
}