Deutsch English Français Italiano |
<vdk718$3bulb$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lynn McGuire <lynnmcguire5@gmail.com> Newsgroups: comp.lang.fortran Subject: Re: Is there a way in Fortran to designate an integer value as integer*8 ? Date: Wed, 2 Oct 2024 14:30:48 -0500 Organization: A noiseless patient Spider Lines: 21 Message-ID: <vdk718$3bulb$1@dont-email.me> References: <vdict2$339ak$1@dont-email.me> <vdir24$35104$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 02 Oct 2024 21:30:48 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ede828ac445871289d7e1d3d6f342500"; logging-data="3537579"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PKCp4k+rmuBBFQYzV8M6nyhp+T5uB3Sw=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:XYEB5myxzTIgEfFDd90EJoCdXyg= Content-Language: en-US In-Reply-To: <vdir24$35104$1@dont-email.me> Bytes: 1747 On 10/2/2024 2:00 AM, Lawrence D'Oliveiro wrote: > 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 Thanks ! I was afraid of that. I will have to put _8 in about 100,000 lines of my F77 code. And the future conversion to C++ will need special handling. Lynn