Space as grouping separator in printf
- by blekione
I know how to use comma in printf as grouping separator to print value in format like
1,000,000.00
to print it that way I'm using command
System.out.printf ("%,.2f", value);
but how to use space as grouping separator to format value like
1 000 000.00
I tried to find solution but solutions with using DecimalFormat look at now to complicate for…