
floatdistance(lhs, rhs)? 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). -- Hervé Brönnimann hervebronnimann@mac.com On Apr 30, 2008, at 5:35 AM, Paul A Bristow wrote:
I also find the name edit_distance very unintuitive. In fact I struggle to see from how the definition in Wikipedia it is 'technically accurate'. ... But I'm still struggling to find a better name, though 'nexts(a, b)' is short.
Paul
--- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com