3 ms·
Anyone else just use the Python REPL as their desktop calculator?
by bityard 3y ago
Anyone else just use the Python REPL as their desktop calculator?
- idanp 3y agoyes, with modifications - https://github.com/idanpa/calcpy https://github.com/idanpa/calcpy
- oneshtein 3y agobc -l
- freedomben 3y agoYes! (although ruby (irb) instead of python). It's amazingly useful to be able plug in expressions in a single line of text format. Though for more complex expressions, something like qalculate looks nice to me.
- nuxi 3y agoFor one-off simple calculations I just use awk, with this handy function in my .bashrc: function calc() { awk "BEGIN{print $*}"; } # usage in bash $ calc 'sqrt(25) + 2**3 - 17.17' -4.17