🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by cmoore Fri, 27 Jun 1986 20:21
INTEGER*2 in f77
#392
Author: cmoore
Date: Fri, 27 Jun 1986 20:21
17 lines
1176 bytes
Help!  I'm not much of a fortran person, so this may be
a dumb question, but I'm having problems getting something
to work in IBM's Fortran 77 for the IBM PC.  The IBM manual
says that an INTEGER*2 must be in the range of -32767 to 32767.
What happened to -32768???  The manual says that this is an
invalid integer.  Is there really no way to get 8000 hex into
a 2 byte value?  Is this something weird in IBM's implementation,
or is this standard f77?

-- 

===========================================================
Any project can be built with a handful of parts if you have
big enough hands.

 Chris Moore (408) 749-4692
 UUCP: {ucbvax,decwrl,ihnp4,allegra}!amdcad!amdimage!cmoore
Re: INTEGER*2 in f77
#394
Author: Steve Schlaifer x43171 156/224
Date: Mon, 30 Jun 1986 18:56
14 lines
1115 bytes
In article <18@amdimage.UUCP>, cmoore@amdimage.UUCP (chris moore) writes:
> [ summary: IBM/PC Fortran doesn't allow -32768 in INTEGER*2.  Is this
>            standard? ]

There is no INTEGER*2 in the ANSI standard for Fortran '77.  This is a
vendor extension to the language.  Unfortunately, it sounds like they
didn't do a very good job.
-- 

...smeagol\			Steve Schlaifer
......wlbr->!jplgodo!steve	Advance Projects Group, Jet Propulsion Labs
....logico/			4800 Oak Grove Drive, M/S 156/204
				Pasadena, California, 91109
					+1 818 354 3171
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads