A general fortran question involving large integers


TheIsingGuy
08-07-2009, 06:35 AM
Hi,

Like the title says, I am trying to implement an algorithm involving really big integers, on the order or 1E30, However, Fortran's largest integer type integer(kind = 8) only accept upto (2^63)-1 which is around 1E18, not even nearly enough for me.

I tried to define an integer with the value 1E30, and fortran assumed it was (2^63)-1, as above.

Does anybody know a way around this?

Any help is appreciated

TheIsingGuy

davekw7x
08-07-2009, 10:02 AM
...really big integers
There are several arbitrary precision numerical packages that might meet your needs. For starters, you can check the links to the mpfun and arprec packages here: http://www.netlib.org/mpfun/

Regards,

Dave

TheIsingGuy
08-11-2009, 05:35 AM
Thanks dave,