R: Round floating point values that are with tolerance of...
fix.fp
R Documentation
Round floating point values that are with tolerance of integer
Description
This function returns a numeric value that is integer if it is within the specified tolerance of being integer.
Otherwise, the given argument value is returned.
Usage
fix.fp(z, tol = 1e-04)
Arguments
z
A numeric floating or integer value
tol
The tolerance used to determine how close argument z is an integer