[swift-users] FloatingPoint equality ..
Gavin Eadie
gavin at umich.edu
Thu Jun 29 16:10:38 CDT 2017
.. agreed but this looks too awful (and is mostly a joke!)
return a >= b.nextDown.nextDown.nextDown.nextDown && a <= b.nextUp.
nextUp.nextUp.nextUp
Thanks, friends, for your insights and info .. Gavin
On Thu, Jun 29, 2017 at 3:30 PM, Taylor Swift via swift-users <
swift-users at swift.org> wrote:
>
>> (b) one ULP is almost never a tolerance you want to use. It’s much too
>> small for almost all computations, and too large for most of the remaining
>> ones.
>>
>> – Steve
>>
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170629/5e3924ca/attachment.html>
More information about the swift-users
mailing list