Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

benaryorg/rust-cli_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-cli_calculator

Build Status

This is a small command line calculator taking command line arguments describing some math things, e.g. 5*3*(4+1*5.123/3+3/5+(3*3)*(123-3)) returning the correct result e.g. 16294.615000000002.

Also, all calculations are stored in strings and are therefore not very accurate. There are currently no plans to rewrite this, though it would be quite interesting to solve this with an enum of operations.

Building & Running

$ cargo build --release
$ cargo run --release -- '<calculation>'

You then have the binary. You know what to do with it, I'm sure.

Contribution

Yes. Please. Just a PR is enough.

There are already TODOs in the comments.

License

MIT.

About

a calculator for the command line (written in Rust)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages