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. Advertising

  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. 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.

Share This Page