Is there anything in Kotlin that would help with f...
# getting-started
a
Is there anything in Kotlin that would help with formatting a number with a given amount of significant digits (not decimal places)?
e
if you're on JVM, just use Java formatting. if you're not on JVM, https://youtrack.jetbrains.com/issue/KT-21644
a
Java formatting is not too useful for this. The Java way is jumping through some hoops with BigDecimal, which is pretty inefficient.