def str2num (text:str)->float:
    """ Convert string to number. 

        Keyword arguments:
	        text    -- number in string format
        Output:
                number  -- number converted
    """
    assert text.isnumeric(),"Error: The string can not be converted to a number"
    number = float(text)
    return number