[swift-evolution] [Draft][Proposal] Formalized Ordering
Pyry Jahkola
pyry.jahkola at iki.fi
Fri Jul 22 11:48:28 CDT 2016
Dmitri Gribenko wrote:
>> 7. What, in fact, is the proposed total order for the stdlib's floating-point types?
>
> The IEEE 754 definition.
>
> https://github.com/apple/swift/blob/f318fe853d7898246db24d501f1ddc03c9eb8651/stdlib/public/core/FloatingPoint.swift.gyb#L855
Cool. So if I'm reading it correctly, that's exactly the same order as what I defined here, using bitPattern: http://swiftlang.ng.bluemix.net/#/repl/5791db33719d5d045b4d430c. I suppose your implementation is better in the usual case where most values are in the range of -Double.infinity ... Double.infinity.
— Pyry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160722/d999559d/attachment.html>
More information about the swift-evolution
mailing list