[swift-evolution] [swift-evolution-announce] [Review] SE-0113: Add integral rounding functions to FloatingPoint

Stephen Canon scanon at apple.com
Fri Jul 1 12:13:30 CDT 2016


> On Jul 1, 2016, at 1:11 PM, Jordan Rose via swift-evolution <swift-evolution at swift.org> wrote:
> 
> [Proposal: https://github.com/apple/swift-evolution/blob/master/proposals/0113-rounding-functions-on-floatingpoint.md <https://github.com/apple/swift-evolution/blob/master/proposals/0113-rounding-functions-on-floatingpoint.md> ]
> 
> Just wondering, why no 'awayFromZero' case?

It’s not defined or required by IEEE 754.  The others are.  I wouldn’t be opposed to adding some other rounding modes, but the IEEE 754 set is as good as any as a starting point.

– Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160701/e1b423c2/attachment.html>


More information about the swift-evolution mailing list