(n: number)
| 749 | ] |
| 750 | |
| 751 | function numberToRoman(n: number): string { |
| 752 | let result = '' |
| 753 | for (const [value, numeral] of ROMAN_VALUES) { |
| 754 | while (n >= value) { |
| 755 | result += numeral |
| 756 | n -= value |
| 757 | } |
| 758 | } |
| 759 | return result |
| 760 | } |
| 761 | |
| 762 | function getListNumber(listDepth: number, orderedListNumber: number): string { |
| 763 | switch (listDepth) { |