powered by
Compute whether x and y are approximately equal given a tolerance level
approx_equal(x, y, tol = .Machine$double.eps^0.5)x %~% y
x %~% y
Numeric scalar.
Tolerance.
Boolean
# NOT RUN { approx_equal(1, 1) 1 %~% (1 + 1e-16) 1 %~% 1.01 # }
Run the code above in your browser using DataLab