Exponentiation operator in Swift

Posted by Rohit Kumar | Updated on

Exponentiation operator in Swift. There isn’t an operator but you can use the pow function like this:

If you want to, you could also make an operator call the pow function like this:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers