is.wholenumber: To judge the number is whole number or not

View source: R/fraction.r

is.wholenumberR 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)

FRACTION documentation built on Aug. 24, 2023, 9:08 a.m.