gaboshlib/g_percentage-diff.bashfunc aktualisiert

This commit is contained in:
olli 2023-11-03 16:05:36 +01:00
parent 658d99f867
commit 0a86a383a5

View File

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