Doubt about the income of value number

what is the difference, between this …

Number period = getValue<input_SPS>(ctx); //0.005 income and it works

and thist?

Number period = (1 / getValue<input_SPS>(ctx)); //200 income and it no works

if income is 1 or higher works, it should not be the same? :thinking:

I answer myself :roll_eyes:

the error

 Number period = (1 / getValue<input_SPS>(ctx));
 Number duty = (getValue<input_SPS>(ctx) / 2 );

the solution

 Number period = (1 / getValue<input_SPS>(ctx));
 Number duty = period * 0.5;

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.