def dec_to_bin(number):
    bin_rep = ''
    
    while number:
        bin_rep += str(number % 2)
        number = number / 2

    return bin_rep[::-1]