When I using String.format
method, if my phone language be Farsi this method return the formatted number in Farsi language. but I want to use an English formatted number.
I using this code:
String.format("%.02f", myNumber)
my question in picture:
I think you need to use the String.format(Locale, String, ...)
method with an English Locale instance, probably with Locale.ENGLISH
. This will tell String.format to use English number formatting instead of Farsi.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With