Discussions

EJB design: Decimal Format. --- URGENT.

  1. Decimal Format. --- URGENT. (4 messages)

    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.

    Threaded Messages (4)

  2. Decimal Format. --- URGENT.[ Go to top ]

    try in giving ",##.000" instead of "##,##,##,##,##,##,##0.000"

    Satya
  3. Decimal Format. --- URGENT.[ Go to top ]

    If it is so god-damned URGENT, figure it out on your own and don't waste your time at this forum.

    Hurry!
  4. If it is so god-damned URGENT, figure it out on your own and don't waste your time at this forum.

    >
    > Hurry!


    I though this forum is read by only well educated people but ..... people also read this.
  5. Decimal Format. --- URGENT.[ Go to top ]

    If it is so god-damned URGENT, figure it out on your own and don't waste your time at this forum.

    >
    > Hurry!

    Also, don't show your frustration if u don't have any solutions.....