-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
long double overload #88
Comments
This is similar to issue #86 You would probably want to introduce a whole distinct code sequence, akin to our current fallback. Pull requests invited. Be mindful of the need to prove correctness. |
Note that It appears that Given that But then, again, pull requests are invited. |
Well, as pointed in the original post, there is a I actually don't care at the moment about long double precision, I just care about the API to be more close to the standard, so that when So, maybe in context of this issue we could just add Pseudocode: from_chars(const char* str, long double& out){
double value;
from_chars(str, value);
out = (long double)(value);
} |
Yes, but that doesn't change anything about what Daniel said. On Power systems Just using |
Only on some (most?) x86 Linux. Both macOS and Windows have 64-bit Ryu shows the peril of supporting this type. They have a |
Something that might make sense is the C++23 fixed-width floating-point types: |
@alugowski Agreed. |
Can |
Add
long double
overload forfrom_chars()
to fully mimicstd::from_chars
. See https://en.cppreference.com/w/cpp/utility/from_chars overload no.4The text was updated successfully, but these errors were encountered: