calc

An interactive arbitrary-precision calculator in the terminal. More information: <https://github.com/lcn2/calc>.

Install

All systems
curl cmd.cat/calc.sh
Debian Debian
apt-get install apcalc
Ubuntu
apt-get install apcalc
Arch Arch Linux
pacman -S calc
image/svg+xml Kali Linux
apt-get install apcalc
Fedora
dnf install calc
Windows (WSL2)
sudo apt-get update sudo apt-get install apcalc
OS X
brew install calc
Raspbian
apt-get install apcalc

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)'
  • Perform a calculation without any output formatting (for use with pipes):
    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

© tl;dr; authors and contributors