`--- In basicx@basi..., Mikael Karstikko <makarst@p...> wrote:`

What happens of your pressure is between -0.1 and 0?

Like, what if it is -0.05?

In the code you gave this value would not be changed.

Maybe you meant in the second if-then.... if pres >-0.1 then.....

This would zero out all the barely negative numbers.

Remember, less than means "to the left of" on the number line.

Otherwise use ABS() to get rid of the sign.

-Tony

What happens of your pressure is between -0.1 and 0?

Like, what if it is -0.05?

In the code you gave this value would not be changed.

Maybe you meant in the second if-then.... if pres >-0.1 then.....

This would zero out all the barely negative numbers.

Remember, less than means "to the left of" on the number line.

Otherwise use ABS() to get rid of the sign.

-Tony