Skip to content

dual-balanced-ternary/dual_balanced_ternary.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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