FreeBSD.software
Home/textproc/py311-roman-numerals-py

py311-roman-numerals-py

4.1.0textproc

Manipulate well-formed Roman numerals

roman-numerals is a library for manipulating well-formed Roman numerals. Integers between 1 and 3,999 (inclusive) are supported. Numbers beyond this range will return an OutOfRangeError. The classical system of roman numerals requires that the same character may not appear more than thrice consecutively, meaning that 'MMMCMXCIX' (3,999) is the largest well-formed Roman numeral. The smallest is 'I' (1), as there is no symbol for zero in Roman numerals. Both upper- and lower-case formatting of roman numerals are supported, and likewise for parsing strings, although the entire string must be of the same case. Numerals that do not adhere to the classical form are rejected with an InvalidRomanNumeralError.

Origin
textproc/py-roman-numerals-py
Size
9.30KiB
License
BSD0CLAUSE, CC0-1.0
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
0 packages

Dependencies (2)