• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deciam Formatting - URGENT.  RSS feed

 
Tarun Dewan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm trying to format amount (in double) for display purpose in my JSP.
For this i'm trying as following :
new DecimalFormat("##,##,##,##,##,##,##0.000").format(pDbl)
This gives me result as follows :
999,999,999,999,999.500
ISSUE NO. 1 -> I'm trying to get first comma after 3 digit and other commas after 2 digits.
ISSUE NO.2 -> if exceed the above specified digit say if i enter 9,999,999,999,999,999.500 then result is
10,000,000,000,000,000.000
Pls. advice to resolve this issue.
Thanks & regards,
Tarun Dewan.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!