diff --git a/gaboshlib/g_num_is_between.sh b/gaboshlib/g_num_is_between.sh index 3c0cc2d..8c531c3 100644 --- a/gaboshlib/g_num_is_between.sh +++ b/gaboshlib/g_num_is_between.sh @@ -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