snippetbashTip
calc — An interactive arbitrary-precision calculator in the terminal. More information: <https://manned.org
Viewed 0 times
thecommandcalccliinteractivecalculatorarbitraryprecision
Problem
How to use the
calc command: An interactive arbitrary-precision calculator in the terminal. More information: <https://manned.org/calc>.Solution
calc — An interactive arbitrary-precision calculator in the terminal. More information: <https://manned.org/calc>.Start
calc in interactive mode:calcPerform a calculation in non-interactive mode:
calc '{{85 * (36 / 4)}}'Don't format the output (for use with [p]ipes):
calc -p '{{4/3 * pi() * 5^3}}'Perform a calculation and then switch to [i]nteractive mode:
calc -i '{{sqrt(2)}}'Start
calc in a specific permission [m]ode (0 to 7, defaults to 7):calc -m {{mode}}View an introduction to
calc:calc help introView an overview of
calc:calc help overviewOpen the
calc manual:calc helpCode Snippets
Start `calc` in interactive mode
calcPerform a calculation in non-interactive mode
calc '{{85 * (36 / 4)}}'Don't format the output (for use with [p]ipes)
calc -p '{{4/3 * pi() * 5^3}}'Perform a calculation and then switch to [i]nteractive mode
calc -i '{{sqrt(2)}}'Start `calc` in a specific permission [m]ode (0 to 7, defaults to 7)
calc -m {{mode}}Context
tldr-pages: common/calc
Revisions (0)
No revisions yet.