

'''simple docstring'''

def      __magic_name__							(			A				)      ->		int:
	snake_case							=					str(A				).strip()
	if not bin_string:
		raise ValueError('Empty string was passed to the function'				)
	snake_case							=					bin_string[0] == '-'
	if is_negative:
		snake_case							=					bin_string[1:]
	if not all(char in '01' for char in bin_string				):
		raise ValueError('Non-binary value was passed to the function'				)
	snake_case							=					0
	for char in bin_string:
		snake_case							=					2 * decimal_number + int(A				)
	return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
						from doctest import testmod

						testmod()













"""simple docstring"""


def 					a			(  UpperCamelCase_				:					float		)	->		int:
 return int(UpperCamelCase_		) if x - int(UpperCamelCase_		) <= 0 else int(UpperCamelCase_		) + 1


if __name__ == "__main__":
   import doctest

   doctest.testmod()





