[swift-evolution] [Draft][Proposal] Formalized Ordering
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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution