# How do I do a Calculation with the power to

**URL:** <https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802>\
**Category:** Need help\
**Created:** [May 26, 2020, 3:50am UTC](https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802 "2020-05-26T03:50:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![christo1](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@christo1](https://forum.bubble.io/u/christo1)\
**Post date:** [May 26, 2020, 3:50am UTC](https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802/1 "2020-05-26T03:50:00Z")

</div>

I am rebuilding an app I had built in Google Sheets to Bubble and have progressed nicely. I have been using the Expressions plugin but one formula is stumping me. In Sheets it is 2^(G4/3). G4 will be a dynamic filed from Bubble. The answer in Sheets if I replace G4 with 6 is 4, where in Buble it is 0. I tried replacing the formula with 2\<\<(6/3) I get the answer 8 instead of 4. How can I get it to give me the correct result?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![christo1](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@christo1](https://forum.bubble.io/u/christo1)\
**Post date:** [May 26, 2020, 10:19pm UTC](https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802/2 "2020-05-26T22:19:38Z")

</div>

I’ve figured it out. It should be 2\*\*(6/3)

---

<div class="post-metadata">

**Author:** ![madeline.shuhui](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@madeline.shuhui](https://forum.bubble.io/u/madeline.shuhui)\
**Post date:** [July 15, 2020, 9:56am UTC](https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802/3 "2020-07-15T09:56:43Z")

</div>

Hi Christo, thanks for posting your solution. I am struggling with inputA to the power of input B, i cannot quite seem to be able to type \*\* as you mentioned above. Can you please post a screenshot of your solution in editor?

---

<div class="post-metadata">

**Author:** ![christo1](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@christo1](https://forum.bubble.io/u/christo1)\
**Post date:** [July 15, 2020, 10:17am UTC](https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802/4 "2020-07-15T10:17:58Z")

</div>

Hi Madeline, I was using the Expression tool from the toolbox plugin.  
Recently I found a much easier way.

Here is what the calculation looks like without using the expression plugin: ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/2/7214d176ada13d9e0550f7830e0843d408d21f5b.png)

 ![Power to](https://us1.discourse-cdn.com/bubble/original/3X/9/1/91bb54002a7c4d1dcfd0a2be9b4ee5e3da35d00e.png)

Note both inputs need to be number formats for this to show up.

I can’t believe I missed this!

---

<div class="post-metadata">

**Author:** ![madeline.shuhui](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@madeline.shuhui](https://forum.bubble.io/u/madeline.shuhui)\
**Post date:** [July 15, 2020, 12:26pm UTC](https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802/5 "2020-07-15T12:26:25Z")

</div>

Thanks very much for the quick response. I have now solved the problem. Cannot believe it was that simple! 😂

---

<div class="post-metadata">

**Author:** ![christo1](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@christo1](https://forum.bubble.io/u/christo1)\
**Post date:** [July 15, 2020, 10:47pm UTC](https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802/6 "2020-07-15T22:47:36Z")

</div>

Glad I could help. Took me 3 hours to figure out the first time. At least I learnt 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 4, 2020, 3:50am UTC](https://forum.bubble.io/t/how-do-i-do-a-calculation-with-the-power-to/93802/7 "2020-08-04T03:50:04Z")

</div>

Closed on August 4, 2020, 3:50am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
