Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 621 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 621 Bytes

Dual Balanced Ternary Arithmetic

Migrated from https://github.com/dual-balanced-ternary/dual-balanced-ternary.nim

crate

Rust Docs.

Usages

use dual_balanced_ternary::{ternary};

ternary("&1.1")

Development

cargo test
cargo run --example buffer

Notice, current buffer format is not compact, but conceptually:

[integral length]+[integral pairs]+[fractional pairs]

since a dbt digits pair takes 81 and u8 takes 256, 2/3 of spaces are wasted.

License

MIT