Last active
September 20, 2018 15:12
-
-
Save varantes/839e53fc4d6b02d91bc766a78267e97a to your computer and use it in GitHub Desktop.
Prints a number formatted to Brazil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val f = 3.14 | |
println("Locale.getDefault() = ${Locale.getDefault()}; f=$f") | |
val brasilNumberFormatter = NumberFormat.getNumberInstance(Locale("pt", "br")); | |
println("Locale.getDefault() = ${Locale.getDefault()}; f=${brasilNumberFormatter.format(f)}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment