2017-05-18 19:04:36 +01:00
|
|
|
# calc
|
|
|
|
|
2022-07-16 21:52:27 +01:00
|
|
|
> An interactive arbitrary-precision calculator in the terminal.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://github.com/lcn2/calc>.
|
2017-05-18 19:04:36 +01:00
|
|
|
|
2022-07-16 21:52:27 +01:00
|
|
|
- Start `calc` in interactive mode:
|
2017-05-18 19:04:36 +01:00
|
|
|
|
|
|
|
`calc`
|
|
|
|
|
|
|
|
- Perform a calculation in non-interactive mode:
|
|
|
|
|
2022-07-16 21:52:27 +01:00
|
|
|
`calc '{{85 * (36 / 4)}}'`
|
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Don't format the output (for use with [p]ipes):
|
2022-07-16 21:52:27 +01:00
|
|
|
|
|
|
|
`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 intro`
|
|
|
|
|
|
|
|
- View an overview of `calc`:
|
|
|
|
|
|
|
|
`calc help overview`
|
|
|
|
|
|
|
|
- Open the `calc` manual:
|
|
|
|
|
|
|
|
`calc help`
|