I created a quizz where I calculate IMC.
I have comma as a decimal mark.
I used a formula to attribute the interval of IMC
The IMC formula is
{round(Weight/(Height*Height/100/100),2)}
To evaluate IMC interval I have this formula
{if(IMC<25,0,if(IMC>=25 and IMC<=30,1,if(IMC>30,3)))}
With comma as decimal mark the
if condition does not work. It looks like the if function "thinks" the comma near 30 ( IMC<=30,) is a decimal mark instead of a parameter.
With decimal mark as dot it works fine
I tried to use fixnum(IMC) but didn't work
Is there a way to make this work with decimal mark as comma?
I send my quizz as an attach
Thanks