Crates.io | dual_balanced_ternary |
lib.rs | dual_balanced_ternary |
version | 0.1.1 |
source | src |
created_at | 2021-09-06 10:23:52.900975 |
updated_at | 2024-05-30 17:21:26.614824 |
description | Dual Balanced Ternary Arithmetic |
homepage | https://github.com/dual-balanced-ternary |
repository | https://github.com/dual-balanced-ternary |
max_upload_size | |
id | 447482 |
size | 44,032 |
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