stats

fun stats(num: BigDecimal, isInteger: Boolean = false, scale: Int = 1): String(source)

Formats a BigDecimal to string with low amount of post-comma decimals

Return

Formatted number string

Parameters

num

Number to be formatted

isInteger

Whether to explicitly format the number with no decimals

scale

Rounding scale of formatting