# Swift Language Numbers Exponentiation

## Example

In Swift, we can exponentiate `Double`s with the built-in `pow()` method:

``````pow(BASE, EXPONENT)
``````

In the code below, the base (5) is set to the power of the exponent (2) :

``````let number = pow(5.0, 2.0) // Equals 25
``````
{"ft_lang_label":"__label__en","ft_lang_prob":0.6671285,"math_prob":0.9889677,"size":281,"snap":"2022-27-2022-33","text_gpt3_token_len":81,"char_repetition_ratio":0.09747292,"word_repetition_ratio":0.0,"special_character_ratio":0.29537368,"punctuation_ratio":0.17741935,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9928422,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-20T05:59:56Z\",\"WARC-Record-ID\":\"<urn:uuid:97f4d651-90f6-4975-aa76-279d8a5b8b8e>\",\"Content-Length\":\"41445\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ca9278eb-480f-4877-a356-085aba211338>\",\"WARC-Concurrent-To\":\"<urn:uuid:9580a683-0257-41f3-99b6-024ba7b13d0f>\",\"WARC-IP-Address\":\"40.83.160.29\",\"WARC-Target-URI\":\"https://riptutorial.com/swift/example/5613/exponentiation\",\"WARC-Payload-Digest\":\"sha1:HT3D4N2AQXH3EYO3WCCRYFPFVGHASB5T\",\"WARC-Block-Digest\":\"sha1:6OZ2QFJCP3O5KYDSAO6LQYQDS4QGPZ2D\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882573908.30_warc_CC-MAIN-20220820043108-20220820073108-00081.warc.gz\"}"}