powered by
Checks whether a numeric value is integral, up to machine or other specified prescision.
is.wholenumber(x, tol = .Machine$double.eps^0.5)
A logical vector of the same length as x, containing the results of the test.
x
numeric vector to be tested.
The desired precision.
Robin Evans
x = c(0.5, 1, 2L, 1e-20) is.wholenumber(x)
Run the code above in your browser using DataLab