https://github.com/printfn/bases
Rust implementation of jan Misali's number base algorithm
https://github.com/printfn/bases
Last synced: 3 months ago
JSON representation
Rust implementation of jan Misali's number base algorithm
- Host: GitHub
- URL: https://github.com/printfn/bases
- Owner: printfn
- Created: 2021-06-25T06:25:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-03T11:29:47.000Z (almost 4 years ago)
- Last Synced: 2025-01-18T07:12:56.549Z (5 months ago)
- Language: Rust
- Homepage: https://crates.io/crates/bases
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bases
Rust implementation of jan Misali's number base algorithm (see [a base-neutral system for naming numbering systems](https://youtu.be/7OEF3JD-jYo) and https://www.seximal.net/names-of-other-bases).
## Installation and Usage:
```bash
# install with cargo
cargo install bases# print the name of base 6 (seximal)
bases 6# print names and abbreviations of all bases
bases
```## Using `bases` as a library:
This crate can also be used as a library, check out [docs.rs/bases](https://docs.rs/bases) for more info.
## Examples:
```
$ 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)
...
```