| Crates.io | romans |
| lib.rs | romans |
| version | 0.1.0 |
| created_at | 2024-08-05 22:49:02.498522+00 |
| updated_at | 2024-08-05 22:49:02.498522+00 |
| description | Utility to convert and represent Roman numerals. |
| homepage | |
| repository | https://github.com/jfaleiro/romans |
| max_upload_size | |
| id | 1326623 |
| size | 67,949 |
A roman numeral convertor
use romans::prelude::*;
fn main() -> Result<()> {
assert_eq!(123, Numeral::try_from("cxxiii")?.value());
assert_eq!(
"cxxiii",
Numeral::from(123)
.as_string()
.to_lowercase()
);
Ok(())
}