Hello,
I came to see you because Make bug suddenly, and I can not find a solution.
I’m just trying to do a simple addition.
For example: 1.4+1.8
It answers: 1.41.8
without even doing the addition…
It worked fine a few days ago, but now it’s gone… Impossible to perform an addition operation…
Any ideas?
This is because if you use the Basic Trigger, your numbers get converted into strings.
You can use the built-in function parseNumber
e.g.:
{{ parseNumber(1.num1) }}
For more information, see the function documentation in the Help Center.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!
Yes thanks you for the quick reply @samliew !
What I don’t understand is that I’ve been doing this kind of operation for months and months. Taking a variable and then adding it to another variable has never been a problem.
I’ve never used Parsenumber for that…
Why has this become necessary? Or is it the use of “get variables”? (Which I don’t use very often)
(PS: Here’s the real case I’m working on for more context. It’s simply the addition of 2 variables, not “basic trigers”.
Well, perhaps you found a bug, or it was originally a bug and it got fixed.
Either way you can contact support for more information.
For technical issues or bugs like this, directly contacting support can often lead to a faster resolution. They have access to your specific account details, scenario and scenario logs, server-side logs, and internal tools and resources, which allows them to investigate more thoroughly than what you have access to.
You can open a new ticket here, or if you are unable to login for some reason, you can create another new free account to access the ticketing system (which is only available to logged-in users). Alternatively, you should be able to send an email to helpdesk@make.com and support@make.com and it should create a ticket. After submitting a new ticket, you will receive an automatic confirmation email with the subject “Ticket Created” in the subject. If you do not receive this, try sending the ticket again.
If you manage to get your issue resolved with support, we’d still love to hear about it! Sharing your solution on the forum can help others facing similar problems.
A workaround at the moment would be to use the Set Variable module with either 0+num
or parseNumber(num)
This ensures the variable type will be a number.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!
1 Like
This all depends on whether the original data you are adding was in string or numeric format. If both arguments to the + operator as numbers you’ll get the right math. But if either are strings and you don’t parseNumber() them the + operator becomes a concatenation. This has always been the case in Make (it’s like this in JavaScript too).
There are other places this could cause a potential error in calculations.