I would like to translate 10000000.0 to PREFIX10,000,000.00
May I know what pattern I should pass into DecimalFormat?
NumberFormat numberFormat = new DecimalFormat(...);
numberFormat.format(10000000.0);
new DecimalFormat("PREFIX#,##0.00");
This will always show at least one integer digit (e.g. 0), and use comma as group separator.
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