+ 1
Square root in Swift 4
Hi guys, I want to ask: how do you calculate square root in Swift 4? Normally we use sqrt, but it seems that there's no sqrt in Swift 4. Thank you ^^
2 odpowiedzi
+ 4
let x = 4.0
let y = x.squareRoot()
print(y)
Simplest way to find the square root
+ 2
Thanks mate