[flang-commits] [PATCH] D113698: [flang] Fix rounding edge case in F output editing
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Nov 11 10:50:56 PST 2021
klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
When an Fw.d output edit descriptor has a "d" value exactly
equal to the number of zeroes after the decimal point for a value
(e.g., 0.07 with F5.1), the Fw.d output editing code needs to
do the rounding itself to either 0.0 or 0.1 after performing
a conversion without rounding (to avoid 0.04999 rounding up twice).
https://reviews.llvm.org/D113698
Files:
flang/runtime/edit-output.cpp
flang/runtime/edit-output.h
flang/unittests/Runtime/NumericalFormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113698.386590.patch
Type: text/x-patch
Size: 7854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211111/5ab211c4/attachment.bin>
More information about the flang-commits
mailing list