Check if number of whole number
is_whole_number(x, tol = 1e-10)
x
tol
TRUE if it is a whole number within tolerance
Related functions from the same R package