How to represent a big number in Java -
this question has answer here:
- large numbers in java 7 answers
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
Post a Comment