Learn R Programming

formatters (version 0.5.0)

is.wholenumber: is.wholenumber

Description

is.wholenumber

Usage

is.wholenumber(x, tol = .Machine$double.eps^0.5)

Value

TRUE if x is within tol of zero, FALSE otherwise.

Arguments

x

numeric(1). A numeric value

tol

numeric(1). A precision tolerance.

Examples

Run this code
is.wholenumber(5)
is.wholenumber(5.00000000000000001)
is.wholenumber(.5)

Run the code above in your browser using DataLab