You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft-specific: The representation of long double and double is identical. However, long double and double are treated as distinct types by the compiler. The Microsoft C++ compiler uses the 4- and 8-byte IEEE-754 floating-point representations.
Hi, here is sample code to reproduce the problem I struggle with:
Output is :
https://godbolt.org/z/rxMb5nEGP
Is there a reason why precision 2 is working differently for long double compared to float?
PS Output also vary by compiler:
clang 14, gcc 12 output is 0.1
vs 2022 output is 0.10
The text was updated successfully, but these errors were encountered: