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

Function numberToLetter

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

Source from the content-addressed store, hash-verified

723}
724
725function numberToLetter(n: number): string {
726 let result = ''
727 while (n > 0) {
728 n--
729 result = String.fromCharCode(97 + (n % 26)) + result
730 n = Math.floor(n / 26)
731 }
732 return result
733}
734
735const ROMAN_VALUES: ReadonlyArray<[number, string]> = [
736 [1000, 'm'],

Callers 1

getListNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected