Skip to main content

Crate kalendarium

Crate kalendarium 

Source
Expand description

§Kalendarium

This rust library contains modules for converting Arabic numerals into Roman numerals, and for converting dates into the Kalendarium Romanum.

The largest valid numeral is 9,999,999. Though the Romans did not have an explicit symbol for 0 (ZERO), this library employs nulla (N) as zero, always uppercase.

Numbers 4000 and larger are represented using the vinculum system, wereby a bar over symbols, which multiples everything underneath by 1000. For example: I̅V̅ for 4,000 (using unicode long macron as the bar symbol).

Structs§

Kalendarium
A Kalendarium Romanum object
OutOfRangeError
Returned as an error if a numeral is constructed with an invalid input
RomanNumeral
A Roman numeral

Constants§

MAX
The value of the largest Roman numeral
MIN
The value of the smallest Roman numeral

Type Aliases§

Result
Result with error defaulted to xvii::Error