diff --git a/gaboshlib/g_percentage-diff.bashfunc b/gaboshlib/g_percentage-diff.bashfunc index e59444a..a09afbf 100644 --- a/gaboshlib/g_percentage-diff.bashfunc +++ b/gaboshlib/g_percentage-diff.bashfunc @@ -9,5 +9,6 @@ function g_percentage-diff { g_calc "${g_to} == 0" [ ${g_calc_result} -eq 1 ] && return 1 g_calc "100/${g_from}*(${g_to}-${g_from})" - g_percentage_diff_result=$(printf -- "%.2f" "${g_calc_result}") + #g_percentage_diff_result=$(printf -- "%.2f" "${g_calc_result}") + printf -v g_percentage_diff_result -- "%.2f" "${g_calc_result}" }