def is_number(my_value):
    """
    Check if value is a number or not by casting to a float and handling any errors.
    :param my_value: value to check
    :return: true if number, false if not.
    """
    try:
        float(my_value)
        return True
    except Exception:
        return False