Question if a number is included in a given inclusive range

number:in_range?(FLOAT $number, FLOAT $range_min, FLOAT $range_max)

number:in_range?(10, 0, 20)
#=> TRUE

number:in_range?(10, 0, 10)
#=> TRUE

number:in_range?(10, 0, 9)
#=> FALSE

number:in_range?(10, -10, 0)
#=> FALSE

number:in_range?(-2, -10, -1)
#=> TRUE

number:in_range?(-2, -10, -100)
#=> FALSE

Copyright ©2013-2022 SunSed®. All rights reserved.