function rfValidateTolerance(tol)
%RFVALIDATETOLERANCE Validate tol input to rationalfit.

%   Copyright 2018 The MathWorks, Inc.

validateattributes(tol,{'numeric'}, ...
    {'nonempty','scalar','real','finite','nonnan','<=',0},'','Tolerance')
