Answers for "android kotlin local currency code and symbol"

0

android kotlin local currency code and symbol

val locale = Locale.getDefault()
val numberFormat = NumberFormat.getCurrencyInstance(locale)
println(numberFormat.currency)  // on my device in Italy print: EUR

val symbol = numberFormat.currency?.symbol
println(symbol) // on my device in Italy print: €
Posted by: Guest on April-19-2022

Code answers related to "android kotlin local currency code and symbol"

Browse Popular Code Answers by Language