Re:Show HN: Shellmath: Floating-point arithmetic directly in...
by wodenokoto on Thursday February 25, 2021 @06:17AM
(#26261782)
I think shellmath exists because it could be done, rather than because it needed to be done.
Also, `bc 1 / 2` causes an error (at least in bash 3.2 using bc version 1.06) because file 1 doesn't exist, so there's also that for a reason
It's imprecise and much more clunky to write. bc exists for decades already and has arbitrary precision.