3 ms·
On linux, if you want a calculator, just type python.
by hyperman1 4y ago
On linux, if you want a calculator, just type python.
- marcosdumay 4y agoAnd here I go again, recommending Qalculator and its CLI friend qalc. Python is a lousy calculator, unless you want to program it.
- hyperman1 4y agopython is good enough for almost everything you throw at it, and is probably installed. qcalc might be better, but it is probably not installed.
- Evidlo 4y agoOctave is also nice as a calculator
- markstos 4y agoI use Speedcrunch. Launches instantly, so not much time savings to use a CLI tool instead.
- throwaway742 4y ago>>> 1/3 0
- Macha 4y ago$ python Python 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 1/3 0.3333333333333333 If you're going to keep using EOL versions, that's on you.
- throwaway742 4y agoBlame the Debian maintainers. That was the default python package.
- jjice 4y agoHmmm, I got >>> 1/3 0.3333333333333333 What version? $ python3 --version Python 3.9.9 I'd expect your result with `1//3`.
- yellowapple 4y agoI install Julia on my machines for this reason.
- shiomiru 4y agoI'm more of a javascript kind of person, so I prefer the qjscalc command from QuickJS.[1] [1]: https://bellard.org/quickjs/ https://bellard.org/quickjs/
- asdff 4y agoor just type bc