https://github.com/sharpvik/scalc
https://github.com/sharpvik/scalc
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sharpvik/scalc
- Owner: sharpvik
- Created: 2019-10-31T13:35:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-14T19:00:56.000Z (almost 6 years ago)
- Last Synced: 2025-03-06T06:48:32.051Z (11 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scalc
**Scalc** is a stack-based calculator app that runs in a terminal. I built it using Python3.
## How to Run
```bash
git clone https://github.com/sharpvik/scalc.git
cd scalc
chmod +x main.py
./main.py
# or just 'python3 main.py'
```
## How it Works
| Operator | Explanation |
|:--------:|:------------------|
| + | Addition |
| - | Subtraction |
| * | Multiplication |
| / | Division |
| ^ | Power |
| ! | Factorial |
| = | Peek |
| # | Pop |
| $ | Emit (Peek + Pop) |
| ? | Show the Stack |
| q | Quit |
## Dependencies
* Python 3.7