5 ms·Yeah, should be scaled like |x - y| <= ε * max(|x|, |y|)by stabbles 2y agoYeah, should be scaled like |x - y| <= ε * max(|x|, |y|)aartaka 2y agoWill do.jffhn 2y agoIf both terms are infinites and of same sign, subtraction will give NaN and it will fail.listeria 2y agoHow is that a problem? infinities shouldn't be considered equaljffhn 2y agoFor IEEE 754, and in Java for example, they are. Only NaN is not equal to itself (and different from itself).