increasing width
- From: "Lane Straatman" <invalid@xxxxxxxxxxx>
- Date: Sat, 10 Mar 2007 17:00:10 -0500
I've been writing a fortran95 prog and was getting nine significant figures
for a real-valued calculation.
Some fellow over in sci.math.num-analysis tells me I can get at least 6 more
sig figs, if instead of declaring as type real, I declare as real(8). My
compiler complains:
numsci1.F95(3) : error 62 - Invalid KIND specifier
warning : comment 981 - Specifying the kind of the type REAL with the
constant '8' is non-portable - 'SELECTED_REAL_KIND(6,37)' would be better.
The error is from the line:
real(8) :: total, term
, which I get every time I want to declare real(8). The warning that it
issues would seem to point to the way out. How do I make a real variable
with 'SELECTED_REAL_KIND(6,37)'?
--
LS
.
- Follow-Ups:
- Re: increasing width
- From: Pierre Asselin
- Re: increasing width
- From: Michael Metcalf
- Re: increasing width
- From: *** Hendrickson
- Re: increasing width
- From: Steve Lionel
- Re: increasing width
- From: gsal
- Re: increasing width
- Prev by Date: Re: Merits of fortran
- Next by Date: Re: Object-oriented programing (was Re: How old is the average Fortran programmer?)
- Previous by thread: reset the video buffer
- Next by thread: Re: increasing width
- Index(es):