# Calculating without brackets

**URL:** <https://forum.bubble.io/t/calculating-without-brackets/7986>\
**Category:** Need help\
**Created:** [November 18, 2016, 2:46pm UTC](https://forum.bubble.io/t/calculating-without-brackets/7986 "2016-11-18T14:46:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalinovic.nebojsa](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kalinovic.nebojsa/32/226621_2.png) [@kalinovic.nebojsa](https://forum.bubble.io/u/kalinovic.nebojsa)\
**Post date:** [November 18, 2016, 2:46pm UTC](https://forum.bubble.io/t/calculating-without-brackets/7986/1 "2016-11-18T14:46:29Z")

</div>

I cant find any workaround to do just a bit more advanced calculations i Bubble.

when calculating this example in an input

a-bcd

it looks like the bubble calculates it like this

(a-b) cd

please Bubble, help!

Is there any other workaround to do more math tan this u provide ? I searched Blockspring for any API-s but i cant find any right now…

We all just need brackets!

How should we do economics without those basic math operations?

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [November 18, 2016, 2:51pm UTC](https://forum.bubble.io/t/calculating-without-brackets/7986/2 "2016-11-18T14:51:59Z")

</div>

Have you looked into Math.js?

---

<div class="post-metadata">

**Author:** ![kalinovic.nebojsa](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kalinovic.nebojsa/32/226621_2.png) [@kalinovic.nebojsa](https://forum.bubble.io/u/kalinovic.nebojsa)\
**Post date:** [November 18, 2016, 2:53pm UTC](https://forum.bubble.io/t/calculating-without-brackets/7986/3 "2016-11-18T14:53:16Z")

</div>

Where can i find that plug in?

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [November 18, 2016, 2:55pm UTC](https://forum.bubble.io/t/calculating-without-brackets/7986/4 "2016-11-18T14:55:10Z")

</div>

I don’t think it’s a plugin, I think it’s an API or HTML element you would use. I’d do a forum search for math.js and see what you find, I know others are using it. Good luck!

---

<div class="post-metadata">

**Author:** ![john3](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/john3/32/5625_2.png) [@john3](https://forum.bubble.io/u/john3)\
**Post date:** [November 18, 2016, 3:02pm UTC](https://forum.bubble.io/t/calculating-without-brackets/7986/5 "2016-11-18T15:02:01Z")

</div>

Have you tried breaking up the computation into separate hidden text boxes? Then you can force the order of precedence you want. ie one box holds “a” another computes “bcd” then in your input you compute “a - the product of bcd”.

---

<div class="post-metadata">

**Author:** ![kalinovic.nebojsa](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kalinovic.nebojsa/32/226621_2.png) [@kalinovic.nebojsa](https://forum.bubble.io/u/kalinovic.nebojsa)\
**Post date:** [November 18, 2016, 3:05pm UTC](https://forum.bubble.io/t/calculating-without-brackets/7986/6 "2016-11-18T15:05:49Z")

</div>

oh yes, I tried, and it solves something, but when it comes to repeating group and then accessing that input in an repeating group wont be possible… so still need math not workarounds…

And I see much about math.js on the forum but I cant figure out how to install or add that or configure it on my app in bubble… any ideas folks?

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [November 19, 2016, 5:47am UTC](https://forum.bubble.io/t/calculating-without-brackets/7986/7 "2016-11-19T05:47:06Z")

</div>

There is a decent example of using the API for math.js here:

> **[Bubble Editor - Forumapp3](https://bubble.io/page?type=page&name=math_js&id=forumapp3&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.
