is.wholenumber {FRACTION} | R Documentation |
To judge the number is whole number or not
Description
To judge the number is whole number or not
Usage
is.wholenumber(x, tol = .Machine$double.eps^0.5)
Arguments
x |
x is a numeric number |
tol |
Define in function |
Value
Return TRUE or FALSE to judge x is whole number or not
Author(s)
OuYang Ming
References
Friedrich Leisch, 2008 Creating R packages: A Tutorial Zhang Jinlong, How to create R package under Windows FAQ in R-PROJECT
Examples
r=8
is.wholenumber(r)
[Package FRACTION version 1.1.1 Index]