java ints over 9 digits?

dasoldier

Limp Gawd
Joined
Apr 29, 2005
Messages
185
how can I make an int that can be up to 20 digits?

I pull errors over 9 digits?
 
Doesn't Java support native decimal types now? PCs support 80 bit integers, which are 24 digits long (signed) or 25 digits long (unsigned).
 
The long primitive type supports 19 digit integers in the range of -2^63 to (2^63)-1
 
pxc said:
Doesn't Java support native decimal types now? PCs support 80 bit integers, which are 24 digits long (signed) or 25 digits long (unsigned).


not sure where you're getting this 80-bit thing.

if the word size is 32, a double word would be 64...

so you're telling me there is a datatype that will handle double word + short int size?

do i understand correctly?
 
nameless_centurian said:
not sure where you're getting this 80-bit thing.
Ignore that above. I was mixing up FPU BCD (80 bit) and native long integer FPU support (64-bit). :p

The FPU performs floating point math internally at extended precision (80-bit) whether you're using standard precision (64-bit) or extended precision. The 80-bit register can be used for 80-bit BCD (IIRC only 17 digits are usable).

I haven't done any x87 assembly in a while so it's a little fuzzy to me now and i'm starting to take .NET's decimal type (128-bit, to 28 sig. digits) for granted.
 
Back
Top