Formatting

Object, used for fancy formatting of numbers

Functions

Link copied to clipboard
fun stats(num: BigDecimal, isInteger: Boolean = false, scale: Int = 1): String

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

Link copied to clipboard
fun withCommas(num: BigDecimal, isInteger: Boolean = false, scale: Int = 1): String

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

Link copied to clipboard

Formats a BigDecimal to string without doing integer check