Page MenuHomePhabricator

[flang] Correct kP scaling on F output
ClosedPublic

Authored by klausler on Sep 30 2020, 1:07 PM.

Details

Summary

The sign of the scaling factor was misinterpreted for output
as meaning what it does for input. To be correct, they
should cancel each other out.

print '(1P,F4.3)', 1. ! printed 0.1 but should print 10.0

Diff Detail

Event Timeline

klausler created this revision.Sep 30 2020, 1:07 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Sep 30 2020, 1:07 PM
klausler retitled this revision from Correct kP scaling on F output to [flang] Correct kP scaling on F output.Sep 30 2020, 1:17 PM
PeteSteinfeld accepted this revision.Oct 5 2020, 11:59 AM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Oct 5 2020, 11:59 AM
This revision was automatically updated to reflect the committed changes.