3 ms·
yes fixed point is a good alternative. Floating point can get you in trouble if you are testing for equality too, i.e. pressure == 2 mBar. I've seem people alw
by roland35 7y ago
yes fixed point is a good alternative. Floating point can get you in trouble if you are testing for equality too, i.e. pressure == 2 mBar. I've seem people always put a threshold around it, so something like pressure <= 2.1 mbar AND pressure >= 1.9 mbar