code: def bahttext(number: float) -> str:
      
      ret = ""
  
      if number is None:
          pass
      elif number == 0:
          ret = "ศูนย์บาทถ้วน"
      else:
          num_int, num_dec = "{:.2f}".format(number).split(".")
          num_int = int(num_int)
          num_dec = int(num_dec)
  
          baht = num_to_thaiword(num_int)
          if baht:
              ret = "".join([ret, baht, "บาท"])
  
          satang = num_to_thaiword(num_dec)
          if satang and satang != "ศูนย์":
              ret = "".join([ret, satang, "สตางค์"])
          else:
              ret = "".join([ret, "ถ้วน"])
  
      return ret
docs: Converts a number to Thai text and adds a suffix of "Baht" currency.
      Precision will be fixed at two decimal places (0.00) to fits "Satang" unit.
  
      Similar to BAHTTEXT function in Excel