Hi All
was having a look at phil hornsbeys code for setting up the htu21d
and noticed that he uses the min limiting command (min, 1-1)
do I take from this that the min ,0 can not be used but to obtain zero , 1-1
will deliver zero
regards
john
I think the answer is yes; as all PICAXE numbers are positive integers "MIN 0" is in effect a non-operation.
Eg "1 - 2" would notionally be -1, but in PICAXE terms that underflows to become $FFFF (65535) which is positive, so is already above the lower 0 limit.
To limit the subtraction of 'x' from underflowing zero ...