1.6.0
A command line calculator
A command line calculator written in Clojure. Can be used on any system that has Java installed.
Get Java installed on your system. Then do this:
$ curl -L https://yu7.in/k | sh
Type kani
in terminal to start calculating.
Type kani
in terminal to start calculating.
$ kani
And you will get kani prompt as shown:
kani >
Start doing math
kani > 6 * 7
42
Press Enter to quit.
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
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! |
ans | Retrieves previously computes result | ans ^ 2 |
= | Assignment operator |
a = 3 b = 5 c = a + b |