Kanipaan

1.3.0

A command line calculator

About

Kanipaan

A command line calculator written in Clojure. Can be used on any system that has Java installed.

Installation / update

Get Java installed on your system. Then do this:

$ curl -L https://yu7.in/k | sh

Type kani in terminal to start calculating.

Usage

Type kani in terminal to start calculating.

$ kani

And you will get kani prompt as shown:

Start doing math

kani > 6 * 7
42

Press Enter to quit.


kani >
$

Instant kani

Instant kani is a mode where you just want to do math and get the result instantly rather than going into kani's prompt. For that just type your math operation followed by kani in your terminal as shown

$ kani 6 \* 7
42
$ kani 40 + 2
42

Features

Kanipaan supports the following operations:

Operation Meaning Example
+ For addition 40 + 2
- For subtraction 44 -2
* For multiplication 6 * 7, or 6 \* 7 in instant kani
/ For division 210 / 5
^ For power 2 ^ 3
(...) For parentheses 1000 * (1 + 8%)^ 10
... % ... For reminder 13 % 5
...% For percentage 13%
// For quotient 13 // 5
...! For factorial 5!