





"""simple docstring"""





__A											=		{
    0: """0""",
    1: """1""",
    2: """2""",
    3: """3""",
    4: """4""",
    5: """5""",
    6: """6""",
    7: """7""",
    8: """8""",
    9: """9""",
    10: """a""",
    11: """b""",
    12: """c""",
    13: """d""",
    14: """e""",
    15: """f""",
}
def  __A   (_SCREAMING_SNAKE_CASE			)					->str:





  """simple docstring"""


  assert type(_SCREAMING_SNAKE_CASE			) in (int, float) and decimal == int(_SCREAMING_SNAKE_CASE			)
  lowerCAmelCase__			:Optional[int]											=							int(_SCREAMING_SNAKE_CASE			)
  lowerCAmelCase__			:List[Any]											=							''
  lowerCAmelCase__			:str											=							False
  if decimal < 0:
    lowerCAmelCase__			:Optional[Any]											=							True
    decimal *= -1
  while decimal > 0:
    lowerCAmelCase__							,				lowerCAmelCase__			:Union[str, Any]											=							divmod(_SCREAMING_SNAKE_CASE     ,   16			)
    lowerCAmelCase__			:Union[str, Any]											=							values[remainder] + hexadecimal
  lowerCAmelCase__			:List[Any]											=							'0x' + hexadecimal
  if negative:
    lowerCAmelCase__			:List[Any]											=							'-' + hexadecimal
  return hexadecimal


if __name__ == "__main__":
  import doctest

  doctest.testmod()







"""simple docstring"""





def  __A   (_SCREAMING_SNAKE_CASE     ,   _SCREAMING_SNAKE_CASE			)					->float:





  """simple docstring"""


  if discount_rate < 0:
    raise ValueError('Discount rate cannot be negative'			)
  if not cash_flows:
    raise ValueError('Cash flows list cannot be empty'			)
  lowerCAmelCase__			:Union[str, Any]											=							sum(
      cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(_SCREAMING_SNAKE_CASE			)			)
  return round(_SCREAMING_SNAKE_CASE     ,   ndigits=2			)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
