View source: R/utility_functions.R
approx_equal | R Documentation |
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 |
Numeric scalar. |
y |
Numeric scalar. |
tol |
Tolerance. |
Boolean
approx_equal(1, 1)
1 %~% (1 + 1e-16)
1 %~% 1.01
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.