MCPcopy Create free account
hub / github.com/Noumena-Network/code / numberToRoman

Function numberToRoman

src/utils/markdown.ts:751–760  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

749]
750
751function 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
762function getListNumber(listDepth: number, orderedListNumber: number): string {
763 switch (listDepth) {

Callers 1

getListNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected