Roman numeral
—
Convert a number to Roman numerals.
Roman numerals combine letter values greedily from largest to smallest, with subtractive pairs like IV (4) and CM (900) for numbers just below a round value.
greedy substitution using standard Roman numeral value pairs