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 ))