(a)
return float(s.replace(",", "."))
Convert a string to float.
    The string can be in the following valid regional number formats:
    4,294,967,295.00   4 294 967 295,000   4.294.967.295,000
Convert a string to float.
    The string can be in the following valid regional number formats:
    4,294,967,295.00   4 294 967 295,000   4.294.967.295,000
Convert a string to float . The string can be in the following valid regional number formats : 4 294 967 295 . 00 4 294 967 295 000 4 . 294 . 967 . 295 000
def atof(a):
    """
    Convert a string to float.
    The string can be in the following valid regional number formats:
    4,294,967,295.00   4 294 967 295,000   4.294.967.295,000  
    """
    if len(a) == 0:
        return np.NaN
    
    del_chars = " "
    
    if a.count(",") > 1 or a.rfind(",") < a.rfind("."):
        del_chars = del_chars + ","
    
    if a.count(".") > 1 or a.rfind(",") > a.rfind("."):
        del_chars = del_chars + "."
    
    s = a.translate(str.maketrans("", "", del_chars))

    return float(s.replace(",", "."))
def atof ( a ) : if len ( a ) == 0 : return np . NaN del_chars = " " if a . count ( "," ) > 1 or a . rfind ( "," ) < a . rfind ( "." ) : del_chars = del_chars + "," if a . count ( "." ) > 1 or a . rfind ( "," ) > a . rfind ( "." ) : del_chars = del_chars + "." s = a . translate ( str . maketrans ( "" , "" , del_chars ) ) return float ( s . replace ( "," , "." ) )