comparison.hpp close and close_enough
Posted by xinonnet on Jun 09, 2008; 3:20pm
URL: http://quantlib.414.s1.nabble.com/comparison-hpp-close-and-close-enough-tp6105.html
The close functions return false even for two VERY close numbers, for example:
close( 0, QL_EPSILON ) returns false
close( QL_EPSILON, QL_EPSILON * 10 ) returns false
It only returns true for identical numbers, which defeats the purpose of these functions.