diff options
| author | Kang Seonghoon <public+git@mearie.org> | 2015-05-06 21:11:14 +0900 |
|---|---|---|
| committer | Kang Seonghoon <public+git@mearie.org> | 2015-05-06 21:11:14 +0900 |
| commit | 3d34e177dd19bfbc6885b03eac0632adc9c621b2 (patch) | |
| tree | 7552928ee99af9f398ac719a2ce016e5e352835d /src/libstd/array.rs | |
| parent | a641b05fda448d3388347838076e3c583a5f8fa4 (diff) | |
| download | rust-3d34e177dd19bfbc6885b03eac0632adc9c621b2.tar.gz rust-3d34e177dd19bfbc6885b03eac0632adc9c621b2.zip | |
core: use banker's rounding for the exact mode in flt2dec.
For the shortest mode the IEEE 754 decoder already provides an exact rounding range accounting for banker's rounding, but it was not the case for the exact mode. This commit alters the exact mode algorithm for Dragon so that any number ending at `...x5000...` with even `x` and infinite zeroes will round to `...x` instead of `...(x+1)` as it was. Grisu is not affected by this change because this halfway case always results in the failure for Grisu.
Diffstat (limited to 'src/libstd/array.rs')
0 files changed, 0 insertions, 0 deletions
