mpoly (version 1.1.1)

is.wholenumber: Test whether an object is a whole number

Description

Test whether an object is a whole number.

Usage

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

Arguments

x

object to be tested

tol

tolerance within which a number is said to be whole

Value

Vector of logicals.

Examples

Run this code
# NOT RUN {
is.wholenumber(seq(-3,3,.5))
# }

Run the code above in your browser using DataLab