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,012
  2. John Reye
    Replies:
    14
    Views:
    874
    Tim Rentsch
    May 8, 2012
  3. Bob Rashkin
    Replies:
    5
    Views:
    161
    Dennis Lee Bieber
    Dec 23, 2013
  4. Steven D'Aprano
    Replies:
    0
    Views:
    219
    Steven D'Aprano
    Dec 23, 2013
  5. Replies:
    3
    Views:
    192
    Gary Herron
    Dec 23, 2013
Loading...

Share This Page