Calculation with parentheses & dynamic data in textfield?

Hello everyone,

I’m trying to create a website with Bubble.io and am struggling with a simple calculation because I can’t use parentheses when calculating with a text field and dynamic data. I hope someone can help me:

Example:

Input A - (Input B / Input C * Input D)

100 - (3000 / 1000 * 20) = 40

By entering the value without parentheses, Bubble calculates the following false value:

100 - 3000 = 2900

2900 / 1000 * 20 = 58

Is there a simple solution for this problem?

Thanks a lot!

Did you activate parenthesis feature? (settings/version tab)

You just need to activate it in settings > version

yes, but i can’t enter the parenthesis on my own? Bubble ist entering the parenthesis automatically like …

“Bubble parenthesis” –> (input A - input B) / input C * Input D = false value
instead of–> input A - (input B / input C * input D) = correct value

… and the result ist still wrong.

This is because you are not selecting the correct “more” options
For exemple, add input a - input b… bubble Will automatically add (input a - input b) … if you click on the last parenthesis, you should see a more before the parenthesis and another one after, select the last one and Bubble will do
((input a - input b) / (input c* input D))
(you will just get more “more” options to select when you enter other expression part. Just need to select the correct one) In my screenshot, the first more is actually the search box and with red arrow, the second more… Depending of the formula you need you will select the correct one and Bubble will build your expression according to more selected

Small video to help you