add %f "percent future": value to be added to Y resulting in sum of

which the added value is X%
This commit is contained in:
Yargo 2017-01-25 18:56:27 +00:00
parent 0b10c0b8a2
commit 12836f1077
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ fi
mcrs='
s,%t,SAdLA100*SASBLALB/,g;# percent part: X:=100*X/Y, Y kept
s,%d,SAddLA-_100*SASBLALB/,g;# percent delta: X:=100*(X-Y)/Y, Y kept
s,%f,SAdlA*100LA-/,g;# percent future: X:=Y*X/(100-X), Y kept
s,%,SAdLA*100/,g;# percentage: X:=X*Y/100, Y kept
s,hm,r60*+,g;# hoursminutes: X:=X+Y*60
s,rem,\%,g;# remainder: X:=Y%X (instead of normal '%' command)