numerus 0.1.1

Convert integers to roman numerals and vice versa
Documentation
  • Coverage
  • 57.14%
    4 out of 7 items documented4 out of 4 items with examples
  • Size
  • Source code size: 11.96 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • FilippoRanza/numerus
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • FilippoRanza

numerus

Build Status crates.io

Convert integers to roman numerals and vice versa

Examples

Convert from int to roman numeral.

    use numerus::int_to_roman_upper;
    let a = 14;
    assert_eq!(int_to_roman_upper(a).unwrap(), "XIV");

Convert a roman numeral to int

    use numerus::roman_to_int;
    let year = "MCMXCVIII";
    assert_eq!(roman_to_int(year).unwrap(), 1998);

For more examples see the documentaion