Learn R Programming

FRACTION (version 1.1.1)

is.wholenumber: 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)

Value

Return TRUE or FALSE to judge x is whole number or not

Arguments

x

x is a numeric number

tol

Define in function

Author

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

Run this code
r=8
is.wholenumber(r)

Run the code above in your browser using DataLab