
Ooh, the return type is an integer that is always representable as a FPT (same as the arguments) and in addition, having FPT allows infinity and NaN if one (both) of the args are infinite or NaN. Nifty... I do hope all these get documented somehow besides the "number of gaps" basic return value. Thanks! Sent via BlackBerry from T-Mobile -----Original Message----- From: Paul A Bristow <pbristow@hetp.u-net.com> Date: Wed, 30 Apr 2008 12:52:47 To:boost@lists.boost.org Subject: Re: [boost] [Math/nextafter] A question of naming functions...
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Hervé Brönnimann Sent: 30 April 2008 12:20 To: boost@lists.boost.org Subject: Re: [boost] [Math/nextafter] A question of naming functions...
floatdistance(lhs, rhs)?
Would adding an underscore be nicer: FPT float_distance(FPT lhs, FPT rhs); And to be clear, this (and the other next functions) *only* apply to floating-point types. (not integer, not decimal, not interval, or any other type)? next_distance() is another possible that does not explicitly limit to floating point. Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost