def valf(node):
    """
    Cast ``val(node)`` as a float.
    Return ``None`` if that does not work.
    """
    try:
        return float(val(node))
    except __HOLE__:
        return None
dataset/ETHPy150Open JamesMilnerUK/Loxo/conversiontools/kml/kml.py/valf