is.wholenumber {formatters} | R Documentation |
Check if a value is a whole number
Description
Check if a value is a whole number
Usage
is.wholenumber(x, tol = .Machine$double.eps^0.5)
Arguments
x |
( |
tol |
( |
Value
TRUE
if x
is within tol
of zero, FALSE
otherwise.
Examples
is.wholenumber(5)
is.wholenumber(5.00000000000000001)
is.wholenumber(.5)
[Package formatters version 0.5.8 Index]