to Currency

fun String.toCurrency(locale: Locale = Locale.getDefault()): String

method to convert string to currency

Author

Jimly A.

Since

02-Nov-21

Return

Formatted string based on Currency locale

Parameters

locale

Local of the currency format, by default Locale.getDefault()

Sources

Link copied to clipboard