Re:Clac – A command-line, stack-based calculator with postfi...
by klodolph on Thursday April 13, 2017 @01:36PM
(#14109131)
For those not familiar with "dc", try running dc and then running "7 100 ^ p". Arbitrary precision! One of the reasons dc doesn't print things out is so you can use it to do arithmetic in your shell scripts.
[ Parent
| on HN ]
Re:Clac – A command-line, stack-based calculator with postfi...
by chocolatebunny on Thursday April 13, 2017 @03:54PM
(#14110396)
you can use $((5+5)) if you want to do arithmetic in a bash shell. Most of the time that's all that's needed.
Re:Clac – A command-line, stack-based calculator with postfi...
by smhenderson on Thursday April 13, 2017 @06:20PM
(#14111333)
But when it was written when there was no bash. Or even sh.
It was written in B before the C programming language was created.