is_wholenumber.Rd
Check if a number is a whole number
is_wholenumber(x, tol = .Machine$double.eps^0.5)
A number
A tolerance level
A logical value
is_wholenumber(1) #> [1] TRUE is_wholenumber(1.1) #> [1] FALSE is_wholenumber(1L) #> [1] TRUE