Numeric overflow

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DiggidyMack69

    Numeric overflow

    Hello folks,
    I have a servlet in a Java web app that accesses an oracle table with
    a column that is NUMBER(12)
    When I put an integer into it of 10 digits or larger I get a numeric
    overflow error. I am using the getInt method and putting that into a
    java int variable. Do either of these have a max length and if so what
    should I be using for large number??

    thanks in advance,
    DM
  • Amey Samant

    #2
    Re: Numeric overflow

    hi
    Java has great support for this
    i was writing an application that simulates RSA algorithm (of course
    it was for educational purpose ;) not practical use ) .....
    but i found a good support for real largeeeeeeeeeee eeeee integers
    check out java.math.BigIn teger class
    it should suffice your needs ...

    cheers
    amey

    DiggidyMack69@h otmail.com (DiggidyMack69) wrote in message news:<c86ce4f.0 312201836.60dc7 13a@posting.goo gle.com>...
    Hello folks,
    I have a servlet in a Java web app that accesses an oracle table with
    a column that is NUMBER(12)
    When I put an integer into it of 10 digits or larger I get a numeric
    overflow error. I am using the getInt method and putting that into a
    java int variable. Do either of these have a max length and if so what
    should I be using for large number??
    >
    thanks in advance,
    DM

    Comment

    Working...