| Crates.io | kaktovik |
| lib.rs | kaktovik |
| version | 0.2.2 |
| created_at | 2023-04-24 18:53:06.003414+00 |
| updated_at | 2026-01-05 19:39:45.974986+00 |
| description | Format a number in Kaktovik numerals |
| homepage | |
| repository | https://gitlab.com/sw0x2A/kaktovik |
| max_upload_size | |
| id | 847728 |
| size | 18,081 |
A library for managing Kaktovik Iñupiaq numerals.
Kaktovik numerals are a base-20 system used by the Iñupiat of Alaska.
This crate allows for parsing, formatting, and arithmetic operations on these numerals,
backed by standard Rust usize integers.
use kaktovik::Numeral;
fn main() {
// Parse a Kaktovik string (20 + 2 = 22)
let n: Numeral = "𝋁𝋂".parse().unwrap();
assert_eq!(n.to_usize(), 22);
// Arithmetic
let sum = n + Numeral::new(10);
assert_eq!(sum.to_usize(), 32);
// Formatting
println!("The number is: {sum}");
}