roller
July 22, 2015, 2:07am
1
Does Bubble follow the standard mathematical order of operations.
For example, will this divide input 2’s value by 5 and take that away from input ones value, or does it work left to right. If it’s the later, how to I adjust the operation when setting a variable (thing).
Input 1’s value – input 2’s value / 5
5 Likes
It works left to right, not order of operations. I’ve realized that while creating my app. A way to work around it is to run a workflow for the part you want calculated first, store that value, and then create another workflow segment for the second part, etc.
3 Likes
That’s correct, we’ll add parenthesis at some point, probably not too far away, but right now that’s the right approach.
11 Likes
roller
July 23, 2015, 12:11pm
4
Makes sense. Thank you both!!
Any update on this. Order of operation is important just for everyone’s reference the order is BEDMAS
2 Likes
Has this been changed/updated yet?
Or is the original approach still required?
Will this not work according to BEDMAS?
1 Like
Have you added parentheses yet?
peter
August 26, 2017, 4:11am
8
have you added parenthesis yet?
emasl
October 3, 2017, 7:27pm
9
How’s it going with the parenthesis?
3 Likes
What’s the status on this?
2 Likes
Parenthesis would be really nice to have
1 Like
neerja
June 7, 2018, 10:42pm
12
It’s on our list of features to add. We’ll keep you posted.
5 Likes
aphz88
October 29, 2018, 9:32pm
13
please add parenthesis its been 3 years
4 Likes
J805
October 31, 2018, 4:31am
15
Haha. I learned it
Please excuse my dear aunt sally. PEMDAS
Same thing though.
3 Likes
We still need parentheses! They’re fundamental!
6 Likes
this had my head spinning until i figured bubble doesn’t follow standard precedence of operations!
3 Likes
Guys you might be able to solve this with the Expression element from Toolbox.
https://bubble.io/plugin/toolbox-1488796042609x768734193128308700
Or math.js local but the library is a bit heavy.
2 Likes
Still doesn’t look implemented?
1 Like
Such a basic thing learned in elementary school yet order of operations is still not here! Sad!
For now the Expression functionality in Toolbox is a great workaround. Thank you!
2 Likes