gaboshlib/g_percentage-diff.bashfunc aktualisiert

This commit is contained in:
olli 2023-11-03 16:07:11 +01:00
parent 0a86a383a5
commit fa408ca67f

View File

@ -3,5 +3,5 @@
function g_percentage-diff {
local g_from=$1
local g_to=$2
printf -- "%.2f" $(g_calc "100/$g_from*($g_to-$g_from)")
printf -- "%.2f" $(g_calc "100/${g_from}*(${g_to}-${g_from})")
}