[Bug fortran/90150] wrong output produced by float format fX.Y descriptor following translated scientific format XpeY.Z

sgk at troutmask dot apl.washington.edu gcc-bugzilla@gcc.gnu.org
Thu Apr 18 19:55:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90150

--- Comment #5 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Thu, Apr 18, 2019 at 07:48:25PM +0000, perini at wisc dot edu wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90150
> 
> --- Comment #4 from federico <perini at wisc dot edu> ---
> uhm so that is my fault, I guess - sorry about that.
> 
> Apparently this is what the FORTRAN standard features. Still,
> I’m a bit confused that the P descriptor produces only a format
> change with the E format, while leading to a _value_ change with F.
> 

It is not a value in change.  You have asked the compiler 
to scale the output of the F edit descriptor.  It is 
assumed that you, the programmer, know that the output
value has been scaled.  For example, 1p causes b=10.0
to be output as 100.000, but you know the true value is
10.000.


More information about the Gcc-bugs mailing list