(n: number)
| 334 | ] |
| 335 | |
| 336 | function numberToRoman(n: number): string { |
| 337 | let result = '' |
| 338 | for (const [value, numeral] of ROMAN_VALUES) { |
| 339 | while (n >= value) { |
| 340 | result += numeral |
| 341 | n -= value |
| 342 | } |
| 343 | } |
| 344 | return result |
| 345 | } |
| 346 | |
| 347 | function getListNumber(listDepth: number, orderedListNumber: number): string { |
| 348 | switch (listDepth) { |