I used String.format() to round to the third decimal place. However this didn't work and I solved it using DecimalFormat. Is there anything I implemented wrong?
val value = 36.295f
Timber.e("format: ${"%.2f".format(value)}")
expect: 36.30 but result: 36.29