remove subshell
This commit is contained in:
parent
93bb065899
commit
02be716591
@ -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}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user