convert_scientific_to_float

glotaran.utils.sanitize.convert_scientific_to_float(value: str) float | str[source]

Convert value to float if it matches scientific notation string.

Parameters:

value (str) – value to convert from string to float if it matches scientific notation

Returns:

return float if value was scientific notation string, else turn original value

Return type:

float | string