Crates.io | rfcalc |
lib.rs | rfcalc |
version | 0.4.0 |
source | src |
created_at | 2023-06-17 08:33:43.658514 |
updated_at | 2024-09-11 14:39:19.399484 |
description | A tool to calculate things |
homepage | https://github.com/chengr4/calc-cli |
repository | https://github.com/chengr4/calc-cli |
max_upload_size | |
id | 892772 |
size | 18,382 |
rfcalc
stands for "R4 Calculations". R4 is my self representaion =_=
cargo install rfcalc
E.g.
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 of N
choose K
rfcalc fc <NUM>
: Convert degree from Fahrenheit to Celsiusrfcalc bytes <expression to calculate>
Quickly devide bytes
only support units of lower case now
E.g.
rfcalc bytes "4mb/4kb"
1024 kb
cargo run -- <subcommand> <args>