KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I tried to make manual currency. Here is my code DecimalFormat df = new DecimalFormat(); DecimalFormatSymbols dfs = new DecimalFormatSymbols(); dfs.setCurrencySymbol("$"); dfs.setGroupingSeparator('.'); dfs.setDecimalSeparator('.'); df.setDecimalFormatSymbols(dfs); System.out.println(df.format(3333454)); Program output is 3.333.454 Why the currency symbol I set didn't appear?
Tags (comma-separated)
Save Edits
Cancel