|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2008-04-30 07:42:37
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk