I am using iReport 5.7.0 to generate JasperReports\'s report. I have set the pattern #####0.000 on a field with a Double value. I have expected 3 dec
Try following at the place where you want a particular decimal format. Say you have a field into report, Total_Number:
new DecimalFormat("#0.000").format($F{Total_number})
If the value for $F{Total_number} is 4.5667888. Following is the output:
4.5667888
Output
4.566