https://github.com/silversquirl/tinycalc
A tiny little calculator
https://github.com/silversquirl/tinycalc
calculations calculator terminal-based text-based tiny
Last synced: 10 months ago
JSON representation
A tiny little calculator
- Host: GitHub
- URL: https://github.com/silversquirl/tinycalc
- Owner: silversquirl
- Created: 2017-01-31T10:44:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T19:25:47.000Z (about 8 years ago)
- Last Synced: 2025-08-16T00:30:37.931Z (10 months ago)
- Topics: calculations, calculator, terminal-based, text-based, tiny
- Language: C
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tinycalc
tinycalc is a calculator. A tiny one. No, really; it's less than 20
lines of code.
tinycalc started as an experiment to play around with
[TinyExpr][tinyexpr]. It then evolved into a little calculator that I
actually use. I used to use Python for calculations, now I use tinycalc.
tinycalc is written in pure C. It uses [Linenoise][linenoise] for line
editing and [TinyExpr][tinyexpr] for evaluating mathematical
expressions.
## Installation
To build tinycalc, run `make`. This will result in the statically-linked
binary file named `tinycalc`. This should be able to run from any
location on any machine with the same Operating System and processor
architecture, so copy it to `~/bin`, `/usr/bin` or any other location in
your `PATH`.
[tinyexpr]: https://github.com/codeplea/tinyexpr
[linenoise]: https://github.com/antirez/linenoise