def nfloat(s):
    """Return floating point value of s if possible, None if not"""
    if not s == None:
        try:
            return float(s)
        except ValueError:
            return None
    else:
        return None