How to get the Power of Integer in Swift

In Swift we can use pow(::) for making power of any number. For Example if we need 2 power 3 – Further you can also typeCaste to Int as     let output = Int(pow(a,b))// prints 8Remember to add import Foundation for get rid of compile time error.