is_nearly_whole: Checks whether a number is near to a whole number

View source: R/utils.R

is_nearly_wholeR Documentation

Checks whether a number is near to a whole number

Description

Checks whether a number is near to a whole number

Usage

is_nearly_whole(x)

Arguments

x

a numeric

Value

TRUE or FALSE

Author(s)

Kelly Sovacool sovacool@umich.edu

Examples

is_nearly_whole(.Machine$double.eps^0.5)
is_nearly_whole(.Machine$double.eps^0.6)
is_nearly_whole(1)

SchlossLab/mothuR documentation built on Aug. 29, 2023, 1:32 a.m.