![]() |
|
#1
|
|||
|
|||
|
A general fortran question involving large integers
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Thanks dave,
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|