pycognaize.common.utils.convert_coord_to_num

convert_coord_to_num(val)[source]

If the input is a string representation of a number (with or without a %), convert it into float. If the input is already a float or an integer, return itself

Parameters:

val (Union[float, int, str])

Return type:

Union[int, float]