Calculations

I am trying to do some really really basic calculations. But everytime I get NaN or no results. I am using the Set Variable nad brought it down to try and see what I am doing wrong. The following I am trying:

CleanShot 2024-02-18 at 11.50.13

This is the result:

CleanShot 2024-02-18 at 11.50.46

All help appreciated

Your brackets are incorrect.

Try selecting them from the variables panel.

Alternatively, you have to manually type each bracket like this:

{{(}}

3 Likes

Still not :(. This is the formula:

{{{{parseNumber(1.request.q22_watIs22)}}{{β€œ}}” / β€œ(({{”}}{{parseNumber(1.request.q23_watIs23)}}{{β€œ}}” / β€œ100)” * β€œ({{”}}{{parseNumber(1.request.q23_watIs23)}}{{β€œ}}” / β€œ100))”}}

This is the result:

Height is in meters

Screenshot_2024-02-19_080218

{{weight / (height * height)}}

Height is in cm

{{weight / (height * height / 10000)}}

Screenshot_2024-02-19_080230

Links

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too β€”

General

Help Center Basics

Articles & Videos

2 Likes

Thank you so much, it works :pray:

1 Like

No problem, glad I could help!

1. If you have a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

others can save time when catching up with the latest activity here, and

  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

2 Likes