# Why does powershell dosen't have the ^ operation

**URL:** <https://forums.powershell.org/t/why-does-powershell-dosent-have-the-operation/24220>\
**Category:** PowerShell Help\
**Created:** [June 2, 2024, 2:40pm UTC](https://forums.powershell.org/t/why-does-powershell-dosent-have-the-operation/24220 "2024-06-02T14:40:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dengshen1575040](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/dengshen1575040/32/4888_2.png) [@dengshen1575040](https://forums.powershell.org/u/dengshen1575040)\
**Post date:** [June 2, 2024, 2:40pm UTC](https://forums.powershell.org/t/why-does-powershell-dosent-have-the-operation/24220/1 "2024-06-02T14:40:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/7/70d332862a22ac0d8937a0614519fc253ca8d1f1.png)

i though this should work but it didn’t ,and there is no ^ operation in [math] as well .so how could i use ^ instead of multiple it multiple times

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [June 2, 2024, 3:12pm UTC](https://forums.powershell.org/t/why-does-powershell-dosent-have-the-operation/24220/2 "2024-06-02T15:12:20Z")

</div>

You can use the `Pow()` method.

```PowerShell
PS E:\Temp> [math]::Pow(2,8)
256

```

---

<div class="post-metadata">

**Author:** ![dengshen1575040](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/dengshen1575040/32/4888_2.png) [@dengshen1575040](https://forums.powershell.org/u/dengshen1575040)\
**Post date:** [June 3, 2024, 12:46am UTC](https://forums.powershell.org/t/why-does-powershell-dosent-have-the-operation/24220/3 "2024-06-03T00:46:05Z")

</div>

thanks a lot  
💓 💓 💓 💓 💓

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [July 3, 2024, 12:46am UTC](https://forums.powershell.org/t/why-does-powershell-dosent-have-the-operation/24220/4 "2024-07-03T00:46:10Z")

</div>

Closed on July 3, 2024, 12:46am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
