Temperature is inside of range


#1

Simple question, is the comparison clause for temperature sensors “Is inside of range” inclusive of the end points?

IE if I set up a range of between value 32 degrees and 70 degrees, are the 32 and 70 included to return true or only 33->69?


#2

It is inclusive of both ends and reversed-ends capable:

return (v1 < v2) ? ((v >= v1) && (v <= v2)) : ((v >= v2) && (v <= v1));

i.e. ranges can be expressed as 10-20 or 20-10, it would still include 10.0 through 20.0, ends included.