### 9 unstable releases (3 breaking)

0.4.0 | Sep 11, 2024 |
---|---|

0.3.3 | Feb 24, 2024 |

0.2.1 | Jun 22, 2023 |

0.1.1 | Jun 17, 2023 |

#**297** in Math

**400** downloads per month

**MIT**license

8KB

162 lines

# CLI calculation tools

`stands for "R4 Calculations". R4 is my self representaion =_=`

rfcalc

## Installation

- Install Rust and Cargo will be installed, too
- Run
`cargo``install rfcalc`

## Usage

E.g.

: Calculate the factorial of a number (max: 20)`rfcalc factorial``<``NUM``>`

: Calculate the Hamming weight of a binary number`rfcalc hw``<``NUM``>`

: Calculate the combination of`rfcalc c``<`N`>``<`K`>`

choose`N``K`

: Convert degree from Fahrenheit to Celsius`rfcalc fc``<``NUM``>`

`rfcalc bytes ``<`expression to calculate`>`

`rfcalc bytes`

`<`expression to calculate`>`Quickly devide bytes

only support units of lower case now

E.g.

`rfcalc`` bytes ``"`4mb/4kb`"`
`1024`` kb`

## Testing

`cargo`` run`` --`` ``<`subcommand`>` `<`args`>`

#### Dependencies

~3–5MB

~86K SLoC