def floatN(x):
    """
    Convert the input to a floating point number if possible, but return NaN if it's not
    :param x: Value to convert
    :return: floating-point value of input, or NaN if conversion fails
    """
    try:
        return float(x)
    except ValueError:
        return float('NaN')