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:
Mia T. Rain 2022-02-23 11:29:23 -05:00
parent 05d32dbb1b
commit b1d01d8ae7
Signed by: Mia
GPG key ID: 5F40D66F94DECFE8

View file

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