Crates.io | bases |
lib.rs | bases |
version | 0.2.6 |
source | src |
created_at | 2021-06-25 04:15:48.737494 |
updated_at | 2021-07-03 11:28:40.925547 |
description | Implementation of jan Misali's number base algorithm |
homepage | https://github.com/printfn/bases |
repository | https://github.com/printfn/bases |
max_upload_size | |
id | 414682 |
size | 25,972 |
Rust implementation of jan Misali's number base algorithm (see a base-neutral system for naming numbering systems and https://www.seximal.net/names-of-other-bases).
# install with cargo
cargo install bases
# print the name of base 6 (seximal)
bases 6
# print names and abbreviations of all bases
bases
bases
as a library:This crate can also be used as a library, check out docs.rs/bases for more info.
$ bases 6
seximal
$ bases
1: unary (UNA)
2: binary (BIN)
3: trinary (TRI)
4: quaternary (QUA)
5: quinary (QUI)
6: seximal (SEX)
7: septimal (SEP)
8: octal (OCT)
9: nonary (NON)
10: decimal (DEC)
11: elevenary (ELE)
12: dozenal (DOZ)
13: baker's dozenal (BAK)
14: biseptimal (BIS)
15: triquinary (TRQ)
16: hex (HEX)
17: suboptimal (SUB)
18: triseximal (TRS)
19: untriseximal (UNT)
20: vigesimal (VIG)
21: triseptimal (TIS)
22: bielevenary (BIE)
23: unbielevenary (UNB)
24: tetraseximal (TET)
25: pentaquinary (PEN)
26: biker's dozenal (BIK)
27: trinonary (TRN)
28: tetraseptimal (TER)
29: untetraseptimal (UTT)
30: pentaseximal (PET)
...