This project provides utilities manipulating well-formed Roman numerals, in various programming languages. Currently, there are implementations in Python and Rust.
use roman_numerals_rs::RomanNumeral;
fn main() {
let num = RomanNumeral::new(16);
println!("{}", num); // XVI
assert_eq!("XVI".parse().unwrap(), num);
}
from roman_numerals import RomanNumeral
num = RomanNumeral(16)
print(num) # XVI
assert RomanNumeral.from_string("XVI") == num
This project is licenced under the terms of either the Zero-Clause BSD licence or the CC0 1.0 Universal licence. See LICENCE.rst for the full text of both licences.
Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion in this project shall be dual licensed as above, without any additional terms or conditions.