dot-is.wholenumber.Rd
Check if x is a whole number
.is.wholenumber(x, tol = .Machine$double.eps^0.5)
number to test
the allowed tolerance
boolean indicating whether x is tol away from a whole number value