https://github.com/juancsucoder/rust-cli-calculator
https://github.com/juancsucoder/rust-cli-calculator
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/juancsucoder/rust-cli-calculator
- Owner: JuanCSUCoder
- License: mit
- Created: 2020-09-12T22:01:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T23:32:09.000Z (over 4 years ago)
- Last Synced: 2025-01-22T17:46:09.559Z (4 months ago)
- Language: Rust
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust CLI Calculator    
This a simple command line interface calculator that can take complex expresions with parentheses and give a result.## To Build
```bash
git clone https://github.com/JCSUCoder/rust-cli-calculator
cd rust-cli-calculator
cargo build --release
```## To Use
```bash
cd target/release/
./cli-calc
``````
Welcome to this CLI Rust Calculator
Write down the expression to solve or type 0 to exit
- > 1+1
2
- > 3+5
8
- > 5-3
2
- > (1/2)
0.5
- > 1+(5-2)/(4+3)-8
-6.571429
- > 2^(1/2)
1.414213
- > 0
```