From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,30a4338557379910 X-Google-Attributes: gid1164f8,public From: Paul DeMone Subject: Re: Problems with overflows in DEC Fortran 90 Date: 1997/04/07 Message-ID: <3349AD6D.64C8@EasyInternet.net>#1/1 X-Deja-AN: 231448873 References: <334926C4.41C6@latoso.cheme.cornell.edu> Organization: UUNET Canada News Transport Newsgroups: comp.sys.dec Jeffrey Potoff wrote: > > I'm running DEC Fortran 90 under Digital Unix and it's having > a hard time digesting numbers with large exponents. If I do > this: > > program crap > > double precision test > > test = 1e100 > > end > > When I compile it gives me: > > 90: Error: crap.f, line 5: When converting this constant to a > REAL(KIND=4) number, underflow or overflow occurred. [1E100] > test = 1e100 > > ????? Under IBM's xlf I can run exponents up the 300. Is there > a way around this besides rewritting huge amounts of code. > I'm hoping that I'm just missing something simple. No suprise if xlf is mianframe based. The 360 family and its descendents use a base 16 floating point representation. This buys larger range of exponents at cost of precision and slightly more complex FP hardware. > > Jeff -- Paul W. DeMone The 801 experiment SPARCed an ARMs race Kanata, Ontario to put more PRECISION and POWER into demone@mosaid.com architectures with MIPSed results but PaulDeMone@EasyInternet.net ALPHA's well that ends well.