An open API service indexing awesome lists of open source software.

https://github.com/jochasinga/calc

a simple command line calculator
https://github.com/jochasinga/calc

Last synced: 4 months ago
JSON representation

a simple command line calculator

Awesome Lists containing this project

README

          

# calc

**calc** is a command line calculator interpreter.

- supports only decimal and hexadecimal numbers
- math operators supported: `+`, `-`, `*`, `/`, `%`, `|`
- bit-wise operators: `&`, `|`, `~`, `^`
- parentheses supported
- comment starts with `#`

**set up**

requires cc/gcc.

```shell
$ cd calc; make
$ ./calc
```