if I look at the code being called we are doing: ...
# android
j
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
Multiple unhandled exceptions, perhaps? NumberFormat’s default impl of setRoundingMode just throws an exception, nothing else.
j
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.