Anonymous ID: 9b1f66 Dec. 31, 2019, 9:19 a.m. No.7674044   🗄️.is 🔗kun

>>7673649

# Convert decimal to binary numbers

# Compare to bits() function in Julia

# from: https://gist.github.com/CliffordAnderson/6a3439c91f293d053ce334bdcee17c31

using Match

function tobin(num)

@match num begin

0 ="0"

1 ="1"

_ =string(tobin(div(num,2)), mod(num, 2))

end

end