santosh.audi19 Posted December 28, 2015 Share Posted December 28, 2015 In my Japer report when Im using $F{value}.doubleValue() which results 10.0Now the Requirement is to display 10.00.What should I use to get 10..0 rather than 10.0 |Thanks. Link to comment Share on other sites More sharing options...
zh3ntil Posted December 28, 2015 Share Posted December 28, 2015 You can use pattern option. Go textfields properties. Under text field section you will see the pattern. Link to comment Share on other sites More sharing options...
beekerc69 Posted December 29, 2015 Share Posted December 29, 2015 what would be the proper method to insert the formatting in the expression editor.sspecifically becuase one wants to mix both a formatted number and a formattted date in the same text field box?Thanks Link to comment Share on other sites More sharing options...
zh3ntil Posted December 29, 2015 Share Posted December 29, 2015 Formatting in expression editor: number format example: new java.text.DecimalFormat("#,###.00").format($F{price}) date format example: new java.text.SimpleDateFormat("dd/MM/yyyy").format($F{date}) you can check the java expressions for others. 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