34 #include <Base/Common/CompareFloatingPoint.hh>
42 double l=1.0e-50, r=1e-49;
43 cout << l<<
" == "<<r<<
" is "<<boolalpha <<
Equal(l, r) << endl;
45 BIAS::Less(l, -std::numeric_limits<double>::max());
bool Less(const T left, const T right, const T eps=std::numeric_limits< T >::epsilon())
comparison function for floating point values
bool Equal(const T left, const T right, const T eps)
comparison function for floating point values See http://www.boost.org/libs/test/doc/components/test_...