Simple unit conversion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Avril 3e33be5c32
bytes: Fixed `0.1b` rounding up instead of down.
2 weeks ago
src bytes: Fixed `0.1b` rounding up instead of down. 2 weeks ago
.gitignore initial commit 4 years ago
Cargo.lock bytes: Fixed `0.1b` rounding up instead of down. 2 weeks ago
Cargo.toml bytes: Added support for decimal values (e.g. 1.2k) 2 weeks ago
README added readme 4 years ago

README

Unit conversion v0.1.0
 by Avril <flanchan@cumallover.me> with <3 (license GPL3+)

This program takes a value with a unit and outputs the smallest value corresponding to that type to `stdout`. It then outputs the multiplyer used to convert this unit to `stderr`, if there is one needed.

usage: units <unit> <value>
usage: units --help

Units:
 BYTES		Convert byte unit (k, m, g, p) into single bytes