id summary reporter owner description type status milestone component version severity resolution keywords cc 11159 With float128 x = nan, the test x > 0 evaluates to true charles@… John Maddock "On Linux with boost 1.57, executing the following code {{{ #include #include #include int main() { typedef boost::multiprecision::float128 real; real x = std::numeric_limits::quiet_NaN(); std::cout << ""x: "" << x << ""\n"" << ""x == 0: "" << (x == 0) << ""\n"" << ""x > 0: "" << (x > 0) << ""\n"" << ""x < 0: "" << (x < 0) << ""\n"" << ""x >= 0: "" << (x >= 0) << ""\n"" << ""x <= 0: "" << (x <= 0) << ""\n"" << ""x != 0: "" << (x != 0) << ""\n""; return 0; } }}} gives {{{ x: nan x == 0: 0 x > 0: 1 x < 0: 0 x >= 0: 1 x <= 0: 0 x != 0: 1 }}} I should get {{{ x: nan x == 0: 0 x > 0: 0 x < 0: 0 x >= 0: 0 x <= 0: 0 x != 0: 1 }}}" Bugs closed To Be Determined multiprecision Boost 1.57.0 Problem fixed float128 nan tests charles@…