Answers for "kotlin currency format"

0

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

Browse Popular Code Answers by Language