
'''simple docstring'''







def    snake_case_						(							__SCREAMING_SNAKE_CASE   :					int				):



						"""simple docstring"""





						lowercase_      :	Dict						=			1
						lowercase_      :	int						=			0
						lowercase_      :	Optional[int]						=			1
						lowercase_      :	str						=			1
						lowercase_      :	int						=			3
						lowercase_      :	Dict						=			3
						lowercase_      :	List[Any]						=			limit
						lowercase_      :	Dict						=			0

						lowercase_      :	Optional[Any]						=			""
						while counter != decimal + 1:
												if 4 * q + r - t < n * t:
																		result += str(snake_case_				)
																		if counter == 0:
																								result += "."

																		if decimal == counter:
																								break

																		counter += 1
																		lowercase_      :	Any						=			10 * (r - n * t)
																		lowercase_      :	Tuple						=			((10 * (3 * q + r)) // t) - 10 * n
																		q *= 10
																		lowercase_      :	List[str]						=			nr
												else:
																		lowercase_      :	Dict						=			(2 * q + r) * l
																		lowercase_      :	Optional[int]						=			(q * (7 * k) + 2 + (r * l)) // (t * l)
																		q *= k
																		t *= l
																		l += 2
																		k += 1
																		lowercase_      :	int						=			nn
																		lowercase_      :	Union[str, Any]						=			nr
						return result
def    snake_case_						(							):



						"""simple docstring"""





						print(F'''{calculate_pi(50				) = }'''				)
						import doctest

						doctest.testmod()


if __name__ == "__main__":
							main()





def      __UpperCAmelCase    (  snake_case_							:		str				):



	'''simple docstring'''



	UpperCAmelCase:					Tuple 						=     str(snake_case_				).strip()
	if not bin_string:
		raise ValueError("Empty string was passed to the function"				)
	UpperCAmelCase:					List[Any] 						=     bin_string[0] == "-"
	if is_negative:
		UpperCAmelCase:					Optional[int] 						=     bin_string[1:]
	if not all(char in "01" for char in bin_string				):
		raise ValueError("Non-binary value was passed to the function"				)
	UpperCAmelCase:					List[str] 						=     0
	for char in bin_string:
		UpperCAmelCase:					Union[str, Any] 						=     2 * decimal_number + int(snake_case_				)
	return -decimal_number if is_negative else decimal_number


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

	testmod()
