[Math] boost::math::signbit returns false for -NAN

11 Mar
2009
11 Mar
'09
1:34 p.m.
Hi all, the boost::math::signbit function in trunk fails for an argument of -NAN. #include <boost/math/special_functions/sign.hpp> int main() { using boost::math::signbit; BOOST_ASSERT(signbit(-std::numeric_limits<double>::quiet_NaN())); return 0; } I'd expect to get a '1' back, but the function returns zero and the assertion fails. I know it worked while using Jon Rade's floating point utilities library from the vault. Does this have been integrated? Regards Hartmut
5938
Age (days ago)
5938
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hartmut Kaiser