https://kotlinlang.org logo
#android
Title
# android
j

Joao Birk

06/13/2019, 5:59 PM
if I look at the code being called we are doing: return NumberFormat.getInstance().apply { minimumFractionDigits = minPrecision maximumFractionDigits = maxPrecision roundingMode = RoundingMode.HALF_UP }
stackoverflow 3
a

Alexander Johansson

06/14/2019, 8:18 AM
Multiple unhandled exceptions, perhaps? NumberFormat’s default impl of setRoundingMode just throws an exception, nothing else.
j

Joao Birk

06/14/2019, 4:18 PM
Oh! Interesting. Will get rid off it and give it a try. Thank you
Hmm, it seems it returns DecimalFormat, which does implements that method.
3 Views