Avatar
Linux, plaintext & minimalism
January 12, 2019

Calc - A command-line calculator

Calc is an interactive calculator which provides for easy large numeric calculations, but which also can be easily programmed for difficult or long calculations.

I don’t do advanced math myself, but if you like command-line tools and need to do math (advanced or not) this application should be something for you.

It features both a CLI and a simple TUI. The TUI looks like this:

$ calc
C-style arbitrary precision calculator (version 2.12.5.4)
Calc is open software. For license details type:  help copyright
[Type "exit" to exit, or "help" for help.]

; 3 * (4 + 1)
	15
; 3 * 19^43 - 1
	29075426613099201338473141505176993450849249622191102976
; . % (2^127-1)
	47385033654019111249345128555354223304
; 

And the CLI looks about the same:

$ calc '3 * (4 + 1)'
	15

Since I’m not into math I’m not going to talk about all the features, but you can read more about them on their webpage ‘What is Calc?’.

Installation

The package seems to be named calc in most distributions, except for the Debian family where it’s named apcalc.

Tags: Calc | Calculator | CLI

Feedback

I don't have a commenting system simply because I haven't found a solution that I like. If you want to leave any feedback and/or have any questions, feel free to contact me either via e-mail, fediverse, XMPP or IRC (I'm Hund at freenode.net).