# Help doing multiplication and division with user inputted values

**URL:** <https://community.thunkable.com/t/help-doing-multiplication-and-division-with-user-inputted-values/48280>\
**Category:** Questions about Thunkable X\
**Created:** [September 22, 2018, 9:45pm UTC](https://community.thunkable.com/t/help-doing-multiplication-and-division-with-user-inputted-values/48280 "2018-09-22T21:45:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jj1984](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jj1984](https://community.thunkable.com/u/jj1984)\
**Post date:** [September 22, 2018, 9:45pm UTC](https://community.thunkable.com/t/help-doing-multiplication-and-division-with-user-inputted-values/48280/1 "2018-09-22T21:45:18Z")

</div>

I can’t figure out how to do simple arithmetic with variables input from the user on the client side. For example, a user inputs 3 variables, and i do a simple calculation for them that then returns the answer. Something like,

output = [user\_variable1] + [user\_variable2] / [user\_variable3]

The math functions don’t allow using variables (only numbers), there is no operator to place between variables in loops/functions. I can do a sum or join using lists, but that doesn’t help with multiplication or division.

I must be missing something obvious? Please help! I’m going to pull out my hair!!

---

<div class="post-metadata">

**Author:** ![Taifun](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/taifun/32/1547_2.png) [@Taifun](https://community.thunkable.com/u/Taifun)\
**Post date:** [September 23, 2018, 12:12am UTC](https://community.thunkable.com/t/help-doing-multiplication-and-division-with-user-inputted-values/48280/2 "2018-09-23T00:12:03Z")

</div>

> [@jj1984](#):
>
> The math functions don’t allow using variables (only numbers)

that’s not correct  
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Taifun

---

<div class="post-metadata">

**Author:** ![jj1984](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jj1984](https://community.thunkable.com/u/jj1984)\
**Post date:** [September 23, 2018, 1:15am UTC](https://community.thunkable.com/t/help-doing-multiplication-and-division-with-user-inputted-values/48280/3 "2018-09-23T01:15:44Z")

</div>

Apologies if this hard to read. Adding it from my phone. Say for example I want to divide Global\_duration by target\_bac now that I’ve retrieved the values from local storage. That’s a simple example of what I’m trying to do. I don’t see the ability to do that in what’s available in the math components. Thank you so much for your help. I hope I’m just missing something obvious.

 ![Screenshot_20180922-211006](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/8/c8b42aad124b3a93813c154509ea28b60a745ce6.png)

---

<div class="post-metadata">

**Author:** ![jj1984](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jj1984](https://community.thunkable.com/u/jj1984)\
**Post date:** [September 23, 2018, 2:57pm UTC](https://community.thunkable.com/t/help-doing-multiplication-and-division-with-user-inputted-values/48280/4 "2018-09-23T14:57:30Z")

</div>

Nevermind. I’m an idiot. The way the math components looked made it appear to me that only numbers would work. This is not the case. Apologies.

Maybe an idae for future UI tweak would be to make it more obvious for dummies like me that the math can be done on values or variables.

Thanks, and sorry again.

---

<div class="post-metadata">

**Author:** ![Taifun](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/taifun/32/1547_2.png) [@Taifun](https://community.thunkable.com/u/Taifun)\
**Post date:** [September 23, 2018, 5:00pm UTC](https://community.thunkable.com/t/help-doing-multiplication-and-division-with-user-inputted-values/48280/5 "2018-09-23T17:00:05Z")

</div>

moved into the Thunkable X Discussion  
Taifun

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:55am UTC](https://community.thunkable.com/t/help-doing-multiplication-and-division-with-user-inputted-values/48280/6 "2024-11-08T11:55:27Z")

</div>


