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
Joao Birk
06/14/2019, 4:21 PM
Hmm, it seems it returns DecimalFormat, which does implements that method.