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

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World