From 5d95859d72aa409d5b17ae24a2d28b93813f5877 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 3 Nov 2023 15:00:02 +0100 Subject: [PATCH] gaboshlib/g_percentage-diff.bashfunc aktualisiert --- gaboshlib/g_percentage-diff.bashfunc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gaboshlib/g_percentage-diff.bashfunc b/gaboshlib/g_percentage-diff.bashfunc index 073111e..15503ad 100644 --- a/gaboshlib/g_percentage-diff.bashfunc +++ b/gaboshlib/g_percentage-diff.bashfunc @@ -3,5 +3,5 @@ function g_percentage-diff { local g_from=$1 local g_to=$2 - echo "scale=8; 100/$g_from*($g_to-$g_from)" | bc | sed 's/^\./0./; s/^-\./-0./' | xargs printf "%.2f" + printf $(g_calc "100/$g_from*($g_to-$g_from)") }