is.wholenumber: Check if x is a whole number

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Check if x is a whole number

Usage

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

Arguments

x

number to test

tol

the allowed tolerance

Value

boolean indicating whether x is tol away from a whole number value

Examples

1
2

cmap/cmapR documentation built on Oct. 14, 2021, 12:51 a.m.