each solution I've found for this uses java rather than Kotlin, please can anyone help? I've written an app and I'm just trying to translate to some European countries, however the math part is falling over as Germans, French etc use commas rather than a full stop. I can't figure out how to fix this with the solutions on here.
part of .kt file:
import java.math.RoundingMode
import java.text.DecimalFormat
...
val df = DecimalFormat("#.##")
df.roundingMode = RoundingMode.CEILING
val lengthCalc = 0.01658
val length = df.format(lengthCalc)
any help appreciated thanks
EDIT: I have looked here: How to change the decimal separator of DecimalFormat from comma to dot/point? but as I said originally, all the solutions are for Java, not Kotlin