You can convert the number type double into a formatted string with this
library:
- java.text.DecimalFormat service format
Sample:
double numero = 12.5
new java.text.DecimalFormat("#,##0").format(numero) ---> 12
new java.text.DecimalFormat("#,##0.00").format(numero) ---> 12.50
That's all.
See you.
pd: my english is a little, sorry about that
2007/10/22, diptypatil <[EMAIL PROTECTED]>:
>
>
> While generating report , their is inconsistencies of how the quantity,
> original cost, purchase price
> We are sending data formatted manner only , but while rendering the data
> to
> Excel format.
> So different senarios are :
> Instead of 333.00 its displaying 333
> Instead of 333.99 its displaying 333.99
> Instead of 3,333.00 its displaying 3,333.00
> Can someone pls suggest me what to do ...?
> --
> View this message in context:
> http://www.nabble.com/Decimal-Formating-in-Excel-jasper-report-tf4669469.html#a13338834
> Sent from the jasperreports-questions mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> jasperreports-questions mailing list
> jasperreports-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions