Browse Source

calculator: revert to bc

master
Maxim Likhachev 5 years ago
parent
commit
2e79370509
  1. 3
      scripts/calculator

3
scripts/calculator

@ -23,7 +23,8 @@ while eqn=$(echo | rofi -dmenu -lines 0 -theme Monokai -mesg "$mesg" -p "$prompt @@ -23,7 +23,8 @@ while eqn=$(echo | rofi -dmenu -lines 0 -theme Monokai -mesg "$mesg" -p "$prompt
echo=$exp
if ans=$(( $exp )); then
# if ans=$(( $exp )); then
if ans=$(echo "$exp" | bc -l); then
echo -n $ans | xclip
count=$(( $count + 1 ))

Loading…
Cancel
Save