Money Format + Decimal Place Format

Discussion in 'Java' started by shannon, Feb 1, 2006.

  1. shannon

    shannon Guest

    Hi,
    I want to output a figure that includes both the money format and two
    decimal places but I don't know how to output them both at the same
    time. This is what i have been working on so far. Is the decimal places
    right as it is still outputting a whole number.
    Thanks
    Shannon

    outputTextArea.append( "Product 1" + "\t" + twoDigits.format( product1
    ) + "\n" +
    "Product 2" + "\t" + moneyFormat.format(
    product2 ) + "\n"
     
    shannon, Feb 1, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Artek
    Replies:
    3
    Views:
    2,765
    Steven Cheng[MSFT]
    Feb 14, 2004
  2. tshad

    Money format

    tshad, Jun 9, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    7,753
    lionstar
    Nov 3, 2009
  3. shannon
    Replies:
    1
    Views:
    8,601
  4. Sam
    Replies:
    1
    Views:
    8,837
    Prnda76
    Feb 11, 2010
  5. Duwayne
    Replies:
    1
    Views:
    121
    Lasse Reichstein Nielsen
    Aug 27, 2003
Loading...

Share This Page