All pastes #388914 Raw Edit

Something

public shellscript v1 · immutable
·published 2007-03-10 11:32 UTC
rendered paste body
#!/bin/bashfunction dec2bin() {    n=$1    r=    while [ $n != 0 ]; do        r="$(($n%2))$r"        n=$(($n/2))    done    [ -z "$r" ] && r=0    echo $r}dec2bin 129