swift pow returns decimal code example Example: power swift let number = 3.0 let result = pow(number, 2)