Hi Jay,
Thanks. That's an interesting bit of info.
IBM APL2 returns 5. According to the APL2 manual, the system uses relative tolerance.
With absolute tolerance, as long as they are still using a closed interval around the number, it should still return 5.
If I fudge 5 by half the comparison tolerance, it returns 5 in GNU APL.
APLs,
notably STSC, sometimes approximate tolerant comparision using
techniques such as masking to avoid the floating point computational
overhead of doing it according to spec.
So I guess it's close enough, give or take implementers discretion.