How to represent a big number in Java -


this question has answer here:

how can represent , use large number in java? in scientific computing there number of times need numbers greater long.

you should use biginteger this..

they can large need - until run out of memory.

eg:

biginteger bigintvar1 = new biginteger("1234567890123456890"); biginteger bigintvar2 = new biginteger("2743561234"); bigintvar1 = bigintvar1.add(bigintvar2); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -