gaboshlib/g_num_is_between.sh aktualisiert

This commit is contained in:
olli 2023-11-03 14:56:20 +01:00
parent 09c821e824
commit e08d39ec7c

View File

@ -38,7 +38,7 @@ function g_num_is_between {
local f_to=${f_between1}
fi
# Check if given number is in or out range
if [ $(echo "${f_num} < ${f_from}" | bc -l) -ne 0 ] || [ $(echo "${f_num} > ${f_to}" | bc -l) -ne 0 ]
if [ $(g_calc "${f_num} < ${f_from}") -ne 0 ] || [ $(g_calc "${f_num} > ${f_to}") -ne 0 ]
then
return 1
else