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
Paths
| Differential D88610
[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 print '(1P,F4.3)', 1. ! printed 0.1 but should print 10.0
Diff Detail
Event Timelineklausler retitled this revision from Correct kP scaling on F output to [flang] Correct kP scaling on F output.Sep 30 2020, 1:17 PM This revision is now accepted and ready to land.Oct 5 2020, 11:59 AM Closed by commit rG567462b48eba: [flang] Correct kP scaling on F output (authored by klausler). · Explain WhyOct 5 2020, 1:59 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 296291 flang/runtime/edit-output.cpp
flang/unittests/Runtime/hello.cpp
|