Reputation: 23
I am using iReport 3.1.0 to generate jasper reports.
For one of the fields on my report I want to set a 1000 separator pattern.
This field is in the Detail band and displays values with different number of digits after the decimal point.
So, I want to retain all the digits that come after the decimal point. (I cannot specify a particular number of digits in the pattern) Is it possible to write a number format pattern that displays all the digits after the decimal point?
Upvotes: 2
Views: 6006
Reputation: 8986
Just put an insanely large number of #'s after the decimal point in your format pattern. Trailing zeros will not be shown, so as long as you have more #'s in your pattern than decimal places in your data, you will get all of the digits.
Upvotes: 1
Reputation: 167
I don't think its possible. You must specify the number of digits after decimal point.
Identify the maximum possible number of digits after decimal point and set the pattern as #,##0.######## where number of # after decimal point should be equal to maximum possible digits after decimal point.
Upvotes: 0
Reputation: 3548
1:- Start iReport and open the report.
2:- Select the field where you want to use thousand separator and go to the property section.
3:- Go to "Pattern" property and in number category check the thousand separator check-box.
Upvotes: -1