Add support for generating Roman Numerals #2649
Labels
c: feature
Request for new feature
m: number
Something is referring to the number module
m: string
Something is referring to the string module
p: 1-normal
Nothing urgent
s: waiting for user interest
Waiting for more users interested in this feature
Milestone
Clear and concise description of the problem
It would be useful to be able to generate roman numerals, e.g. for sections of a fake document, or as a fake pattern to be used in another pattern like "Super Bowl XXVII".
Suggested solution
min would default to 1 (you can't write 0 in roman numerals). max would probably be limited to 4999 as roman numerals are not as well-defined above 5000.
Maybe lowercase/uppercase options?
Not localizable. Since roman numerals are always written in latin script.
Alternative
write custom conversion code eg.
where convertToRomanNumerals is a suitable implementation from https://stackoverflow.com/questions/9083037/convert-a-number-into-a-roman-numeral-in-javascript
Additional context
No response
The text was updated successfully, but these errors were encountered: