Returns the square root of the value, rounded to a representable value.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
Return Value
The square root of the value.
Discussion
The following example declares a function that calculates the length of the hypotenuse of a right triangle given its two perpendicular sides.