Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrinting of the largest and other very large floats is wrong #7030
Comments
This comment has been minimized.
This comment has been minimized.
|
Related to #6220. |
This comment has been minimized.
This comment has been minimized.
silene
commented
Jun 12, 2013
|
All the large floating-point numbers are multiple of 2^971, so the expected result should not be so odd (pun intended). The largest floating-point number is actually:
|
jensnockert
referenced this issue
Jul 8, 2013
Closed
Inexact results from str::float::from_str #7648
This comment has been minimized.
This comment has been minimized.
|
triage bump. i think one of these bugs should be production ready. nominating this one. |
This comment has been minimized.
This comment has been minimized.
|
Accepted for production-ready |
This comment has been minimized.
This comment has been minimized.
|
With a heavy heart, not tagging as 1.0 blocker. P-high, not 1.0. |
pnkfelix
added
P-high
and removed
P-high-untriaged
labels
Mar 20, 2014
pnkfelix
referenced this issue
Apr 18, 2015
Closed
Float printing and/or parsing is inaccurate #24557
lifthrasiir
referenced this issue
Apr 19, 2015
Merged
New floating-to-decimal formatting routine #24612
This comment has been minimized.
This comment has been minimized.
|
@pnkfelix why is this not a 1.0 blocker? |
This comment has been minimized.
This comment has been minimized.
|
@tshepang because at the time of that triage, we decided it would be acceptable to fix this after 1.0 As in, we were not saying we cannot fix it; just that we would not wait for perfection before releasing 1.0 I do hope the recently posted flt2dec PR gets into 1.0 |
This comment has been minimized.
This comment has been minimized.
|
@pnkfelix what I wanted to know is why this was decided. For example, is the fix hard and/or time consuming? |
This comment has been minimized.
This comment has been minimized.
|
Yes, fixing this properly is hard. See PR #24612 for a taste of the difficulty |
This comment has been minimized.
This comment has been minimized.
|
@pnkfelix thanks |
jensnockert commentedJun 9, 2013
If you run std::float::infinity.next_after(1.0)` you get the following (unexpected result)
the expected result is actually something like