Migrated from https://github.com/dual-balanced-ternary/dual-balanced-ternary.nim
use dual_balanced_ternary::{ternary};
ternary("&1.1")
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.
MIT