is_nearly_whole {schtools}R 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)

[Package schtools version 0.4.1 Index]