dual_balanced_ternary

Crates.iodual_balanced_ternary
lib.rsdual_balanced_ternary
version0.1.1
sourcesrc
created_at2021-09-06 10:23:52.900975
updated_at2024-05-30 17:21:26.614824
descriptionDual Balanced Ternary Arithmetic
homepagehttps://github.com/dual-balanced-ternary
repositoryhttps://github.com/dual-balanced-ternary
max_upload_size
id447482
size44,032
题叶 (tiye)

documentation

https://docs.rs/crate/dual_balanced_ternary/

README

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

Commit count: 0

cargo fmt