[swift-evolution] TrigonometricFloatingPoint/MathFloatingPoint protocol?
scanon at apple.com
Mon Jul 31 12:31:56 CDT 2017
> On Jul 31, 2017, at 1:29 PM, Taylor Swift via swift-evolution <swift-evolution at swift.org> wrote:
> Also squareRoot() should be moved to the Math module if it is ever created.
No; square root is an IEEE-754 required basic operation, just like addition or multiplication. It is part of the FloatingPoint protocol for this reason—every floating-point type needs to have square root.
More information about the swift-evolution