Math module

:bullseye: What is your goal?

Make the formula work

:thinking: What is the problem & what have you tried?

The module is giving me an error but I do not think is correct

:clipboard: Error messages or input/output bundles

DataError
Parenthesis ) expected (char 21)

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

1 Like

Hey Andres,

sounds like you didn’t close a function. Can you send a screenshot of the module setup?

Any extra help? @Stoyan_Vatov

Yeah those aren’t functions at all. The substraction, the division, none of it.

Select the appropriate functions from the menu and rework your formula.

Where do I select the functions from?

From the mapping menu. Got to math functions, its the 4th tab on the top. Also you dont need the Math module for this. You can do the calculation directly in the field you want the result in.

It should look something like this:

image

Depending on exactly what your formula is supposed to be.

Can I add that formula in the “text” field in the Slack module? Here:

Yes. Just make sure its the actual function with the gray boxes like in my screenshot. You can use a Set Variable module first to test it and get the function right first and then place it directly in the slack module.

I did it, but still not showing a number as a result

image

What is the input like and what is the formula supposed to do?

Hello,

The main reason for using the Math module is that it does not require Make-specific functions- instead, it uses expression syntax (documentation).

So, according to your screenshots, the logic is as follows:

  1. Parse the result from Text parser into a valid number
  2. Divide it by the VES rate minus one
  3. Multiply the result by 100

In other words, assuming that the parsed output of the Text Parser is X and the VES rate is Y, the formula can be expressed as:

(X / (Y − 1)) × 100

Working configuration:

Why must parseNumber() be “grayed out”? Because it is a Make.com built-in function. I don’t know if it is necessary as I don’t know your input data.

If you want to, for example, format the result to 2 decimal places, you should do this in the mapping field of the next module.

Below you will find a sample scenario:

Please let me know if this works for you, @Andres_Aguerrevere.

Have a nice day,
Michal

Welcome to the Make community!

1. You don’t really need to use the Math module, as you’re not using advanced math functions like sqrt. The entire expression can be inserted into the Slack module using the built-in functions and operators.

2. Your brackets, operators, functions, or special variables were not selected from the Variables Panel. Try selecting it again from the Variables Panel, or type curly brackets like these {{ }} so that it ends up with a background color:

{{ ( }}
{{ / }}
{{ + }}
{{ = }}
etc.

I also suggest doing this Make Academy, as it covers selecting brackets, operators, functions, or special variables from the Variables Panel.

For more information, see:

Proposed example:

Screenshot 2026-01-23 161523

{{ (parseNumber(3.`$1`) / 1.data.rates.VES - 1) * 100 }}
:high_voltage: Make Input Markup: Copy-paste the above into the field, including start/end curly brackets for it to import as intended :warning:

You may need to replace the variables with your own.

@samliew