mohammed.sardar Posted October 6, 2014 Share Posted October 6, 2014 Hi All,I have a field in Jasper and I have defefined this as Number. I want this to hold atleast two decimal places at all the time. not less that that. For example if I pass 4760.4 from the PL/SQL It should display in the export as 4760.00 always. It it's 4760.6 from pl/sql then too it should be 4760.60 not 4760.6I have tried pattern as custom pattern but it skipping the one decimal. Any help Please? ThanksMohammed Link to comment Share on other sites More sharing options...
jasperUser12 Posted October 7, 2014 Share Posted October 7, 2014 Add #,##0.00 to the Pattern field in your Text Field Properties.Or in the jrxml like....<textField isStretchWithOverflow="true" pattern="#,##0.00">[/code] 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