# Need a MathJS plugin update

**URL:** <https://forum.bubble.io/t/need-a-mathjs-plugin-update/96497>\
**Category:** Bugs\
**Created:** [June 10, 2020, 7:00pm UTC](https://forum.bubble.io/t/need-a-mathjs-plugin-update/96497 "2020-06-10T19:00:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benoit.romito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/benoit.romito/32/179721_2.png) [@benoit.romito](https://forum.bubble.io/u/benoit.romito)\
**Post date:** [June 10, 2020, 7:00pm UTC](https://forum.bubble.io/t/need-a-mathjs-plugin-update/96497/1 "2020-06-10T19:00:25Z")

</div>

Hi, Bubble Community !

One a the biggest weaknees of Bubble is ‘intermediate’ mathematical calculations : that is not included in the core Bubble (min, max, parenthesis priorities, etc). Hopefully, MathJS plugin brings many functions to overcome this. YET, this pluggin really need a bug fix.

When returning a large number like 750 000, the pluggin return a string ‘7.5e+5’… what is completly useless ! Cause Bubble will convert it as 7.5 as a number ! And using the function format( number, { notation : ‘fixed’ }) doesn’t help either cause it return ‘“750000”’ (with quotes… what Bubble can’t convert to number).

Solving this will add a huge value to Bubble. This error brings many bugs that are difficult to identify when doing calculation. And Bubble needs to be able to do Math !

---

<div class="post-metadata">

**Author:** ![gautam.bakshi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gautam.bakshi/32/62538_2.png) [@gautam.bakshi](https://forum.bubble.io/u/gautam.bakshi)\
**Post date:** [June 10, 2020, 7:57pm UTC](https://forum.bubble.io/t/need-a-mathjs-plugin-update/96497/2 "2020-06-10T19:57:27Z")

</div>

> [@benoit.romito](#):
>
> plugin brings many functions to overcome this. YET, this pluggin really need a bu

Hi There, I’m totally new to bubble and I haven’t tested this but I’m trying to learn mathjs for my own site and I think the formating is a math.js config and not specific to bubble.

Can you try something like this in your field - `format(2.3, {notation: 'fixed', precision: 4})`

You could try this site for more info - [math.js | an extensive math library for JavaScript and Node.js](https://mathjs.org/docs/reference/functions/format.html)

Hope it helps!

---

<div class="post-metadata">

**Author:** ![benoit.romito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/benoit.romito/32/179721_2.png) [@benoit.romito](https://forum.bubble.io/u/benoit.romito)\
**Post date:** [June 19, 2020, 10:31am UTC](https://forum.bubble.io/t/need-a-mathjs-plugin-update/96497/3 "2020-06-19T10:31:15Z")

</div>

Thank you Gautam for your suggestion.  
The function format() with the option notation: ‘fixed’ is precisely what i used and the option “precision” wouldn’t solve anything. The problem is that the function format() within the plugin returns the result as a number between double quotes, what can’t be converted into numbers by Bubble. The only solution i have found so far is to use the function “:find and replace” (find " and replace by nothing) then “:convert to number”.  
It works but the this complex and not optimized.

---

<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:** [June 24, 2020, 7:00pm UTC](https://forum.bubble.io/t/need-a-mathjs-plugin-update/96497/4 "2020-06-24T19:00:26Z")

</div>

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