def isANumber(x):
  """
    Checks if x can be converted to a float.
    @ In, x, object, a variable or value
    @ Out, isANumber, bool, True if x can be converted to a float.
  """
  try:
    float(x)
    return True
  except ValueError:
    return False