11 releases

0.2.1 Jan 17, 2022
0.2.0 Jan 17, 2022
0.1.14 Jan 17, 2022
0.1.11 Dec 30, 2020

#2648 in Command line utilities


Used in hcal

MIT license

215KB
10K SLoC

cbb

A base converter

Examples

cbb 20 -t 8 -> 24

cbb -b 3 -> 0+--

Usage

$ cbb -h
A converter for numbers

USAGE:
    cbb [FLAGS] [OPTIONS] <number>

ARGS:
    <number>    Sets the number

FLAGS:
    -b, --balanced-ternary    Converts decimal to balanced ternary
    -h, --help                Prints help information
    -V, --version             Prints version information

OPTIONS:
    -t, --to <base>    Sets the target base.

Dependencies

~2MB
~34K SLoC