Does anyone know of a function that will help me compare two decimal places with an error of 0.001?
For example
I need to compare 8,485==8,486 and at the end get as a result of the comparison that it is true
Just be aware that they are near only if the difference is less than the tolerance, not less than or equal to.
near(8.485, 8.486, tol = 0.001)
[1] FALSE
near(8.485, 8.486, tol = 0.0011)
[1] TRUE
1 Like
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.