Skip to content

Commit 440b47a

Browse files
committed
Simplify number to letter computation
1 parent b009d0f commit 440b47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PuzzleTools.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ end toNumber
1212

1313
function fromNumber pNum
1414
local tNum
15-
put ((pNum - 1) mod 26) + 65 into tNum
15+
put (pNum mod 27) + 64 into tNum
1616
return numtochar(tNum)
1717
end fromNumber
1818

0 commit comments

Comments
 (0)