When using toString(), Double adds commas (5143 is printed as 5,143). How to disable the commas?
toString()
This will remove all grouping (in your case commas).
DecimalFormat df = new DecimalFormat(); df.setGroupingUsed(false);