create a variable

0
    Hello everyone, I'm new to Mendix and I'm trying to create a project that queries the OpenWeather API, takes the temperature value and uses this value to perform an efficiency calculation, but when creating the efficiency variable in microflow I'm having the following problem. I appreciate any help    
asked
4 answers
1

Hi Bruno,

In the last line, after 25, you need to use div instead of / .

You can write the expression as either:

75 + ($Temperature -24 ) * (25 div 4)

or 

75 + ($Temperature - 24 ) * (25 : 4) 

 

Both functions are valid in Mendix and will be accepted for arithmetic expressions involving division.

answered
0

See the documentation here: https://docs.mendix.com/refguide/arithmetic-expressions/#division

You should use div of : instead of /

Regards,

Ronald

 

answered
0

Hello Bruno Lopes,

 

Try this!

 

image.png

answered
0

Hi Bruno,

After 25 at the last line you have to use div instead of /.

 

75 + ($Temperature -24 ) * (25 div 4)

 

 

answered