






"""simple docstring"""


def 					a			(  UpperCamelCase_				:					float		)	->		float:
 return -num if num < 0 else num




def 					a			(  UpperCamelCase_				:					list[int]		)	->		int:
 if len(UpperCamelCase_		) == 0:
  raise ValueError('abs_min() arg is an empty sequence'		)
 __A						:							Tuple      =						x[0]
 for i in x:
  if abs_val(UpperCamelCase_		) < abs_val(UpperCamelCase_		):
   __A						:							Optional[int]      =						i
 return j




def 					a			(  UpperCamelCase_				:					list[int]		)	->		int:
 if len(UpperCamelCase_		) == 0:
  raise ValueError('abs_max() arg is an empty sequence'		)
 __A						:							str      =						x[0]
 for i in x:
  if abs(UpperCamelCase_		) > abs(UpperCamelCase_		):
   __A						:							Optional[int]      =						i
 return j




def 					a			(  UpperCamelCase_				:					list[int]		)	->		int:
 if len(UpperCamelCase_		) == 0:
  raise ValueError('abs_max_sort() arg is an empty sequence'		)
 return sorted(UpperCamelCase_  ,						key=UpperCamelCase_		)[-1]




def 					a			(  )	->		Tuple:
 assert abs_val(0		) == 0
 assert abs_val(3_4		) == 3_4
 assert abs_val(-1_0_0_0_0_0_0_0_0_0_0_0		) == 1_0_0_0_0_0_0_0_0_0_0_0

 __A						:							str      =						[-3, -1, 2, -1_1]
 assert abs_max(UpperCamelCase_		) == -1_1
 assert abs_max_sort(UpperCamelCase_		) == -1_1
 assert abs_min(UpperCamelCase_		) == -1


if __name__ == "__main__":
   import doctest

   doctest.testmod()

   test_abs_val()
   print(abs_val(-34))  # --> 34













"""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()





