Module:number base: Difference between revisions
Jump to navigation
Jump to search
m (Sware moved page Module:Base not 10 to Module:number base without leaving a redirect) |
No edit summary |
||
Line 7: | Line 7: | ||
local digits = "0123456789¹²" | local digits = "0123456789¹²" | ||
local t = {} | local t = {} | ||
repeat | repeat | ||
local d = (n % 12) + 1 | local d = (n % 12) + 1 | ||
Line 13: | Line 12: | ||
insert(t, 1, digits:sub(d,d)) | insert(t, 1, digits:sub(d,d)) | ||
until n == 0 | until n == 0 | ||
return | return table.concat(t) | ||
end | end | ||
return export | return export |
Revision as of 23:08, 29 June 2023
Documentation for this module may be created at Module:number base/doc