gaboshlib/g_num_is_between.sh aktualisiert

This commit is contained in:
olli 2023-11-07 09:05:05 +01:00
parent 90fe1a79df
commit b554cf6c48

View File

@ -29,7 +29,7 @@ function g_num_is_between {
g_num_valid_number "$f_num" "$f_between1" "$f_between2" || return 1
# Check which is the low (from) and the high (to) number
if [ $(echo "${f_between1} < ${f_between2}" | bc -l) -ne 0 ]
if [ $(g_calc "${f_between1} < ${f_between2}") -ne 0 ]
then
local f_from=${f_between1}
local f_to=${f_between2}