Templates Plugins Courses

Order of Operations

Does this plugin offer the ability to specify the order of operations, such as when using parenthesis?

Hi, @chris.charette241!

Thanks for reaching out!

Can you please specify what particular plugin are you talking about to help you better?

Best, Julia.

I believe it was in reference to the Full Math.js plugin. I’ve since found your demo page for it and it appears that it does follow the order of operations I was asking about.

At the time I posted this question I was reviewing a number of things and I can’t be certain that was the exact plugin but I believe it was.

Hi, @chris.charette241!

I see :slightly_smiling_face: Thank you for the clarification :pray:

So, unfortunately, the plugin doesn’t have an action or event that could be potentially used for the order of operations. It has a list of action (see screenshot below) that can be used.

Please have a look at these threads that might be helpful:

  1. Use mathjs to add together values from DB and divide by 2

  2. Local math/calculations - best practice?

  3. Order of Operation for Math Calculation

  4. Order of operations

  5. Is it possible to use brackets in a calculation?

Hope this helps!
Best, Julia.