qudi.util.helpers.str_to_number

qudi.util.helpers.str_to_number(str_value: str, return_failed: bool | None = False) int | float | complex | str[source]

Parse a string into either int, float or complex (in that order)