Home > Software engineering >  Number format with a DOT as thousand separator in Flutter?
Number format with a DOT as thousand separator in Flutter?

Time:10-07

My Flutter source code displays number format with a comma like 1,234,567 VND. But I want to display it like 1.234.567 VND.

My app language is Vietnamese (vi_VN) so I like number format with a DOT.

So what have I to do?

I'm new to Flutter so could you please tell me exactly what's files to config?

Thank you very much!

CodePudding user response:

here is how you can replace commas in your string with full stops.

String old = "1,234,567 VND";
String newString = old.replaceAll(",", ".");

the newString will be 1.234.567 VND

CodePudding user response:

You can use image

  • Related