spatialEco (version 1.3-2)

is.whole: is.whole

Description

Boolean for evaluating whole numbers

Usage

is.whole(a, tol = 0.0000001)

Arguments

a

A numeric vector to evaluate, only first element will be evaluated

tol

numeric >= 0, differences smaller than tolerance are not reported

Value

A Boolean indicating if number is whole or float

Examples

Run this code
# NOT RUN {
is.whole( 1 )
is.whole( 1.5 )
is.whole( 0.5 )

# }

Run the code above in your browser using DataLab