mirror of
https://dicksdeathabove.xyz/~mia/psh-fractional
synced 2024-11-09 16:44:41 +00:00
adjust sub to remove leading 0s that should not be present
This commit is contained in:
parent
05d32dbb1b
commit
b1d01d8ae7
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue