arithmos 0.1.1

A library for converting Arabic numerals into Greek numerals
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented0 out of 6 items with examples
  • Size
  • Source code size: 18.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 506.04 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vincentjorgensen

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