hey guys, silly question: what's the best way of f...
# stdlib
a
hey guys, silly question: what's the best way of formatting a Float/Double to String with a given number of decimals in Kotlin common? Is there any plan of integrating a
.format
or
.toString(decimals)
in the common stdlib?
j
Nothing for it yet, unfortunately. I made https://github.com/lightningkite/lokalize/tree/master, which has that functionality in there, but it’s not published to Bintray yet. I don’t consider it ready. You could copy the source though, or build it on your own machine.