diff --git a/subtraction/sub b/subtraction/sub index 72d9a44..e21b79f 100755 --- a/subtraction/sub +++ b/subtraction/sub @@ -115,5 +115,6 @@ borrow(){ f1="$next" done } - echo "${nr}$o" # $nr is for negative handling + [ "${o%%.*}" -ne 0 ] && o="${o#0}" + echo "${nr}${o}" # $nr is for negative handling } || echo $(($1-$2)) # NOT float