Handle non-numeric value gracefully