2 releases
0.1.1 | Sep 22, 2021 |
---|---|
0.1.0 | Sep 20, 2021 |
#228 in Value formatting
50 downloads per month
20KB
458 lines
ordo
Latin language utility library for Rust.
Usage
Numerus
struct
Numeri are integer Roman numbers in the inclusive range 1..=3999
. Like other Rust integers,
math operations on Numeri will panic on overflow in debug builds.
use ordo::Numerus;
let xlii = Numerus::try_from(42).unwrap();
let ix = Numerus::try_from(9).unwrap();
let xxxiii = xlii - ix;
println!("The answer is {}", xxxiii);
// prints "XXXIII"
License
ordo
is made available under a BSD-style license; see the LICENSE
file for
details.
lib.rs
:
Latin language utility library.
License
ordo
is made available under a BSD-style license; see the LICENSE
for details.
Contents
[Numerus]: standard form Roman numerals