are there any types for java that are longer than long
java longer than long?
I think double, but I'm not sure. Just google for it 
thx your right im just not to used to thinking of it like that i mean its afew extra lines but i was expecting a few more anyway
Note that while long is an integer type, double is floating point. Float will also give you the range you need.
Floating point representation gives you greater range but less accuracy at the extremes so you have to be careful you're not doing anything that needs a tremendous degree of accuracy! Float is half the size and therefore less accurate than a double.
Floating point representation gives you greater range but less accuracy at the extremes so you have to be careful you're not doing anything that needs a tremendous degree of accuracy! Float is half the size and therefore less accurate than a double.
The easiest solution would perhaps be to create your own SuperLong type. I did it once, my method was really simple, but surely not very fast at run time. But there are surely fast methods to implement a new integer type.
You might want to look into BigInteger
http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html
Although this is not a primative type, it can be very usefull when working with big numbers.
Ther is also a floating point version called BigDecimal.
Greetz
http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html
Although this is not a primative type, it can be very usefull when working with big numbers.
Ther is also a floating point version called BigDecimal.
Greetz
did you try "long long" ?
In c++, it works and is twice longer than a long.
In c++, it works and is twice longer than a long.
