I\'m looking for a way to consistently ignore small differences between floating point numbers in R (these are double precision floating points as per IEC 60559), by using b
One possible solution is to use signif
, a function related to round
and included in the same help file. The help file from ?signif
, says
signif rounds the values in its first argument to the specified number of significant digits.
Whereas
round rounds the values in its first argument to the specified number of decimal places (default 0).
So it appears that signif
may be more closely related to your problem.