variable to hold value more than a billion

Discussion in 'Java' started by sai krishna, Dec 24, 2007.

  1. sai krishna

    sai krishna Guest

    Hi,
    Can anyone suggest a datatype to hold a decimal value (2 decimal point
    precision) that can be upto 100 billion

    Sai
     
    sai krishna, Dec 24, 2007
    #1
    1. Advertisements

  2. sai krishna wrote:
    > Hi,
    > Can anyone suggest a datatype to hold a decimal value (2 decimal point
    > precision) that can be upto 100 billion


    BigDecimal with scale two.

    You could also use a long, but you would have to manage the scaling
    yourself.

    Patricia
     
    Patricia Shanahan, Dec 24, 2007
    #2
    1. Advertisements

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. Replies:
    8
    Views:
    1,115
  2. Tim Hochberg
    Replies:
    0
    Views:
    350
    Tim Hochberg
    Aug 10, 2004
  3. Replies:
    12
    Views:
    861
    Ari Lukumies
    Jun 4, 2005
  4. Subra
    Replies:
    25
    Views:
    1,599
    user923005
    Mar 8, 2007
  5. CMOS
    Replies:
    15
    Views:
    603
    James Kanze
    May 17, 2007
  6. John Reye
    Replies:
    14
    Views:
    968
    Tim Rentsch
    May 8, 2012
  7. Bob Rashkin
    Replies:
    5
    Views:
    270
    Dennis Lee Bieber
    Dec 23, 2013
  8. Replies:
    3
    Views:
    268
    Gary Herron
    Dec 23, 2013
Loading...