Sujet : Re: Is there a way in Fortran to designate an integer value as integer*8 ?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.fortranDate : 02. Oct 2024, 08:00:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdir24$35104$1@dont-email.me>
References : 1
User-Agent : Pan/0.160 (Toresk; )
On Tue, 1 Oct 2024 21:58:40 -0500, Lynn McGuire wrote:
I need many of my integers to be integer*8 in my port to 64 bit. In
C/C++ code, I can say 123456L to mean a long long value, generally 64
bit. Is there a corresponding way to do this in Fortran ...
integer(kind = 8), parameter :: bigval = 9223372036854775807_8
print *, bigval
prints
9223372036854775807