def get_float(s):
  """Return string as float or as None if it cannot be converted.

  Args:
    s: str, presumably decimal float or else some representation of "None"
  Returns:
    float or None
  """
  try:
    x = float(s)
  except ValueError:
    return None
  else:
    return x