def parse_number(key, string) -> float:
    """
    parse numeric values
    Args:
        key: type of html (currently ignored)
        string: a string that represents the font

    Returns:
        float
    """
    size = string.split(", ")[0].replace("px", "")
    return float(size)