# 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