1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 08:22:09 +02:00
tldr/pages/common/calc.md
Vitor Henrique 1ba7fb9460
pages*: add missing mnemonics (#12151)
* pages*: add missing mnemonics

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-19 19:43:42 +05:30

36 lines
662 B
Markdown

# calc
> An interactive arbitrary-precision calculator in the terminal.
> More information: <https://github.com/lcn2/calc>.
- Start `calc` in interactive mode:
`calc`
- Perform 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 intro`
- View an overview of `calc`:
`calc help overview`
- Open the `calc` manual:
`calc help`