is.wholenumber {cmapR}R Documentation

Check if x is a whole number

Description

Check if x is a whole number

Usage

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

is.wholenumber(1)
is.wholenumber(0.5)

[Package cmapR version 1.5.3 Index]