We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running the following code
#include <iostream> #include <boost/multiprecision/float128.hpp> int main() { using std::remainder; boost::multiprecision::float128 x = 180, d = 360; std::cout << remainder(x, 360) << " " << remainder(x, d) << "\n"; }
prints out -180 180. I expected both numbers to be the same and the tie-to-even rule for remainder dictates that 180 is the correct result.
-180 180
remainder
180
I'm on a Fedora 40 machine with boost version 18.3.0 installed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Running the following code
prints out
-180 180
. I expected both numbers to be the same and the tie-to-even rule forremainder
dictates that180
is the correct result.I'm on a Fedora 40 machine with boost version 18.3.0 installed.
The text was updated successfully, but these errors were encountered: