def float_pop(d, k):
    """Pop a value from dict by key, then convert to float if not None.

    Args:
        d (dict): dict to remove key k from.
        k: Key to pop from dict d.
    Returns:
        v: Value popped from dict d, convert to float if not None.
    """
    v = d.pop(k)
    if v is not None:
        return float(v)
    return v