Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Binary-digits/Epoxy/binary-digits.epoxy
Normal file
16
Task/Binary-digits/Epoxy/binary-digits.epoxy
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
fn bin(a,b:true)
|
||||
var c:""
|
||||
while a>0 do
|
||||
c,a:tostring(a%2)+c,bit.rshift(a,1)
|
||||
cls
|
||||
if b then
|
||||
c:string.repeat("0",16-#c)+c
|
||||
cls
|
||||
return c
|
||||
cls
|
||||
|
||||
var List: [5,50,9000]
|
||||
|
||||
iter Value of List do
|
||||
log(Value+": "+bin(Value,false))
|
||||
cls
|
||||
Loading…
Add table
Add a link
Reference in a new issue