tcalc 1.0.3

A terminal calculator
tcalc-1.0.3 is not a library.

tcalc

A terminal calculator

Usage

tcalc supports two modes of usage: terminal and REPL.

# Terminal
$ tcalc "2^8-1"
255
# REPL
$ tcalc
> 2^8-1
  255
> exit

Precedence

Operator Description
( ) parens
- negate
^ ** exponentiation
* / % multiplication, division, modulo
+ - addition, subtraction

REPL

Commands Description
exit exit the REPL
quit alias for exit