import math


def correct_bits_length(bits_expected, number):
	"""
	Checks if the number has sufficient bits

	Keyword arguments:
	bits_expected -- Number of bits expected. 
	number        -- Decimal number

	Returns:
	True if equal False otherwise
	"""
	length_expected = int(math.log10(2 ** bits_expected))
	actual_length = int(math.log10(number))
	return length_expected == actual_length