def mph_to_kt(val):
    """
    Converts mph to knots; accepts numeric or string
    """
    try:
        return int(float(val) * 0.868976)
    except (TypeError, ValueError):
        return val * 0.868976