Results 1 to 5 of 5
  1. #1
    eleda is offline Member
    Join Date
    Sep 2010
    Posts
    4
    Rep Power
    0

    Default double type format

    hi,

    I want to display a double variable value like this: 000015.00

    Is there a way how to do this?

    Any help would be much appreciated.

    Thanks!

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,778
    Blog Entries
    7
    Rep Power
    21

    Default

    Read the API documentation of the DecimalFormat class.

    kind regards,

    Jos

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    Use a DecimalFormat?

    ETA: Maybe I shouldn't have left this post sat here while I went off to get lunch?
    :)

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

  5. #5
    eleda is offline Member
    Join Date
    Sep 2010
    Posts
    4
    Rep Power
    0

Similar Threads

  1. double a * double b = weird output
    By GPB in forum New To Java
    Replies: 3
    Last Post: 03-26-2010, 11:40 AM
  2. is Math.pow only used with type double?
    By AprilFlowers in forum New To Java
    Replies: 9
    Last Post: 10-23-2009, 05:38 AM
  3. Replies: 0
    Last Post: 06-24-2008, 12:25 AM
  4. Replies: 2
    Last Post: 11-16-2007, 02:24 PM
  5. Help with convert a double type number
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 09:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •