From 2e79370509b4782c122f87e165411c1711dd180d Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sat, 12 Dec 2020 14:31:04 +0300 Subject: [PATCH] calculator: revert to bc --- scripts/calculator | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/calculator b/scripts/calculator index c99082a..9a56ac0 100755 --- a/scripts/calculator +++ b/scripts/calculator @@ -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 ))