arithmos

Crates.ioarithmos
lib.rsarithmos
version0.1.1
created_at2025-05-21 05:32:44.519834+00
updated_at2025-05-22 05:28:43.26684+00
descriptionA library for converting Arabic numerals into Greek numerals
homepagehttps://codeberg.org/utricularius
repositoryhttps://codeberg.org/utricularius/arithmos
max_upload_size
id1682958
size18,195
Vincent Jorgensen (vincentjorgensen)

documentation

README

arithmos

A Rust library for converting Arabic numerals (1,2,3...) to Ancient Greek numerals (α', β', γ' ...)

Integers between 0 and 999,999 (inclusive) are currently supported. Any number beyond this range will return an OutOfRangeError.

Both uppercase and lowercase Greek formatting are supported.

Example usage

Create Greek numerals

use arithmos::GreekNumeral;

let num = GreekNumeral::new(616)?;
assert_eq!(num.to_string(), "ΧΙϜ'");

let num: RomanNumeral = 49_999.try_into().unwrap();
println!("{}", num);  // ͵Μ͵ΘϠϘΘ'

License

GPL-3.0

Commit count: 0

cargo fmt