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

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -