2 Replies Latest reply: Sep 18, 2006 6:02 AM by 807569 RSS

    formatting number in java

    807569
      hi ,
      i want to display number as format 99,99,999.99

      I am using DecimalFormat("##,##,###.00")

      but sill it is showing output as 9,999,999.99

      kindly suggest me if there is another solution.
      double num = 99999999.23;
                String format1 = "##,##,###.00" ;  
                DecimalFormat format = new DecimalFormat(format1);
                System.out.println("~~~~"+format.format(num));