Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,9 @@
-- for Lua 5.1/5.2 use math.floor(n/2) instead of n>>1, and n%2 instead of n&1
function dec2bin(n)
return n>1 and dec2bin(n>>1)..(n&1) or n
end
print(dec2bin(5))
print(dec2bin(50))
print(dec2bin(9000))