CLI calculation tools
rfcalcstands for "R4 Calculations". R4 is my self representaion =_=
Installation
- Intall Rust
- Run
cargo install rfcalc
Usage
rfcalc factorial <NUM>: Calculate the factorial of a number (max: 20)rfcalc hw <NUM>: Calculate the Hamming weight of a binary numberrfcalc c <N> <K>: Calculate the combination ofNchooseK
rfcalc bytes <expression to calculate>
Quickly devide bytes
only support units of lower case now
E.g.
rfcalc bytes "4mb/4kb"=>1024kb
Testing