R/iswholenumber.R

Defines functions is.wholenumber

#function that tests if a number is whole or not
is.wholenumber <- function(x, tol = .Machine$double.eps^0.5)  abs(x - round(x)) < tol 
jmmorales/JSMM documentation built on May 19, 2019, 1:54 p.m.