How to change decimal and thousand separators

By: Roberto Erausquin - robertoeh
How to change decimal and thousand separators
2006-05-09 13:11

I designed a report but need to change the decimal separator to "." and the thousand separator to ",". iReport is showing the separators like I want them but when I deploy to my application server, its using "," for decimals and "." for thousands
How can I change this settings? Something related to .properties files? How do I set this parameters in my application?
2006 IR Open Dicussion's picture
Joined: Aug 10 2006 - 3:24am
Last seen: 13 years 6 months ago

2 Answers:


 I have a same problem with you, but reverse with you. I want to format double value with pattern: commas for decimal separator, and dot for thousand separator. Can you or anyone help me? thanks very much!

Note: i want it still is double value, not change to String, :)

Post Edited by myphuong at 09/27/2011 10:36
myphuong's picture
Joined: Sep 26 2011 - 7:22pm
Last seen: 8 years 5 months ago
put the following in your text field expression -> substituting the name of the field for your field name -> change the separators as needed

new java.text.DecimalFormat("#,##0.00").format($F{eventDurationInHours})
lknueve's picture
Joined: Jan 10 2011 - 3:00pm
Last seen: 9 years 1 month ago