def convert_damages_data(damages):
  """Convert damages data from string to float and return converted data as a list."""
  conversion = {"M": 1000000,
               "B": 1000000000}

  updated_damages = list()
  for damage in damages:
    if damage == "Damages not recorded":
      updated_damages.append(damage)
    if damage.find('M') != -1:
      updated_damages.append(float(damage[0:damage.find('M')])*conversion['M'])
    if damage.find('B') != -1:
      updated_damages.append(float(damage[0:damage.find('B')])*conversion["B"])
  return updated_damages