Skip to content

AA-Turner/roman-numerals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roman-numerals

Package on PyPI Package on Crates.io Licence: 0BSD Licence: CC0 1.0 Universal

This project provides utilities manipulating well-formed Roman numerals, in various programming languages. Currently, there are implementations in Python and Rust.

Example usage

Rust

use roman_numerals_rs::RomanNumeral;

fn main() {
   let num = RomanNumeral::new(16);
   println!("{num}"); // XVI
   assert_eq!("XVI".parse().unwrap(), num);
}

Python

from roman_numerals import RomanNumeral

num = RomanNumeral(16)
print(num)  # XVI
assert RomanNumeral.from_string("XVI") == num

Licence

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.

Contribution

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.

About

Manipulate Roman numerals

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •