Human: Give me a Python program to write code for decimal and binary conversions. Assistant: 
Here is a Python program to write code for decimal and binary conversions

import numpy as np

def decimal_to_binary(number, n_bits):
    """Convert a decimal number to binary."""
    if number < 0:
        number = -number
        number = 2 ** n_bits + number
    else:
        number = 2 ** n_bits + number
    return [int(number & (1 << i)) for i in range(n_bits)]

# Enter the number
number = 1234567890

# Enter the number of bits
n_bits = 16

# Calling the function
binary = decimal_to_binary(number, n_bits)

# Printing the binary
print(binary)

#Example Output
# [0, 2, 0, 0, 16, 0, 64, 128, 0, 512, 0, 0, 0, 0, 0, 0]

#Remember to inspect code for bugs.