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
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution