
30 Apr
2008
30 Apr
'08
11:42 a.m.
Hervé Brönnimann wrote:
floatdistance(lhs, rhs)?
Maybe :-)
And as someone noted earlier, it should be the number of gaps, or rather: the number of times nextafter needs to be applied to lhs in order to obtain rhs. Otherwise, the "number of representations between lhs and rhs" is 0 in two cases, when rhs==lhs or when rhs == nextafter(lhs).
Yep, that's what it *does*, it's figuring out how to explain it correctly! Thanks, John.