50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

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)

Value

Vector of logicals.

Arguments

x

object to be tested

tol

tolerance within which a number is said to be whole

Examples

Run this code
is.wholenumber(seq(-3,3,.5))

Run the code above in your browser using DataLab