BETWEEN returns a bit(1) value that indicates whether x is in the closed interval as defined by a and b.
>>-BETWEEN(x,a,b)----------------------------------------------><
BETWEEN(x,a,b) is equivalent to the test (a <= x) & (x <= b). Thus, if any of the arguments are numeric, they must all be REAL.