Answers for "how to format currency kotlin string"

1

kotlin currency format

val numberFormat = NumberFormat.getCurrencyInstance()  
numberFormat.setMaximumFractionDigits(0);
val convert = numberFormat.format(1000000)
    
println(convert)

// result: $1,000,000
Posted by: Guest on July-20-2021

Code answers related to "how to format currency kotlin string"

Browse Popular Code Answers by Language