
"""simple docstring"""
def     __lowerCamelCase  (		UpperCamelCase__      ):


 """simple docstring"""






 _UpperCAmelCase =						1
 _UpperCAmelCase =						0
 _UpperCAmelCase =						1
 _UpperCAmelCase =						1
 _UpperCAmelCase =						3
 _UpperCAmelCase =						3
 _UpperCAmelCase =						limit
 _UpperCAmelCase =						0

 _UpperCAmelCase =						""
 while counter != decimal + 1:
  if 4 * q + r - t < n * t:
   result += str(UpperCamelCase__      )
   if counter == 0:
    result += "."

   if decimal == counter:
    break

   counter += 1
   _UpperCAmelCase =						10 * (r - n * t)
   _UpperCAmelCase =						((10 * (3 * q + r)) // t) - 10 * n
   q *= 10
   _UpperCAmelCase =						nr
  else:
   _UpperCAmelCase =						(2 * q + r) * l
   _UpperCAmelCase =						(q * (7 * k) + 2 + (r * l)) // (t * l)
   q *= k
   t *= l
   l += 2
   k += 1
   _UpperCAmelCase =						nn
   _UpperCAmelCase =						nr
 return result




def     __lowerCamelCase  (		):


 """simple docstring"""






 print(f"{calculate_pi(50      ) = }"      )
 import doctest

 doctest.testmod()


if __name__ == "__main__":
   main()






"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_tokenizers_available


__magic_name__		       =				{}

try:
			if not is_sentencepiece_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			__magic_name__		       =				['''CpmTokenizer''']

try:
			if not is_tokenizers_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			__magic_name__		       =				['''CpmTokenizerFast''']


if TYPE_CHECKING:
			try:
						if not is_sentencepiece_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .tokenization_cpm import CpmTokenizer

			try:
						if not is_tokenizers_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .tokenization_cpm_fast import CpmTokenizerFast

else:
			import sys

			__magic_name__		       =				_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)




