nick_45 Posted December 9, 2020 Share Posted December 9, 2020 I' 'm trying to format a field as currency like this R1 234.95 using a space as a thousand separator using this format mask R# ##0.00;R# ##0.00 but it will not show the space. If I use a comma it works fine.I've played around with locale settings and my region settings even tried this expression that I inserted in text field expression new java.text.DecimalFormat("R# ##0.00").format($F{Nett_Due_value}) which I found on this forum which gave mixed results.I'm at a loss. any help please Link to comment Share on other sites More sharing options...
yeliseiwest Posted December 10, 2020 Share Posted December 10, 2020 May be R#,##0.00 Link to comment Share on other sites More sharing options...
nick_45 Posted December 10, 2020 Author Share Posted December 10, 2020 I have tried that. It gives me a comma as the decimal R1 234,95 instead of a period. Link to comment Share on other sites More sharing options...
victor_33 Posted December 10, 2020 Share Posted December 10, 2020 java.text.NumberFormat.getCurrencyInstance(new Locale("pt","br")).format($F{Nett_Due_value}.doubleValue()).replace("$ ", "").You can try using this, just need to change the expression to your locale and then mess with the replace. I would suggest using substring to formmat the way you want. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now