gaboshlib/g_percentage-diff.bashfunc aktualisiert
This commit is contained in:
1 parent
09d1d8b518
commit
5d95859d72
1 file changed
+1
-1
@@ -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)")
|
||||
}
|
||||
Reference in new issue
Block a user