I need call this
{private static final NumberFormat currencyFormat = NumberFormat.getCurrencyInstance();}
in Android Application, but I using Kotlin and I don't know how to do that in Kotlin. How can I do this in Kotlin?
use as follows:
private val currencyFormat = NumberFormat.getCurrencyInstance()
use below method it will return currency format of the current default format locale:
fun currencyFormat() : NumberFormat = NumberFormat.getCurrencyInstance()
It can be performed via:
val currencyFormat = NumberFormat.getCurrencyInstance();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With