By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,197 Members | 974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,197 IT Pros & Developers. It's quick & easy.

Numeric overflow

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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 largeeeeeeeeeeeeeeee integers
check out java.math.BigInteger class
it should suffice your needs ...

cheers
amey

Di***********@hotmail.com (DiggidyMack69) wrote in message news:<c8*************************@posting.google.c om>...
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

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.