def inhg_to_mb(val):
    """
    Converts inches of mercury to millibars; accepts numeric or string
    """
    try:
        return float(val) * 33.8639
    except (TypeError, ValueError):
        return val * 33.8639