spatialEco (version 1.3-7)

is.whole: is.whole

Description

Boolean for evaluating whole numbers

Usage

is.whole(a, tol = 0.0000001)

Value

A Boolean indicating if number is whole or float

Arguments

a

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

tol

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

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Examples

Run this code
is.whole( 1 )
is.whole( 1.5 )
is.whole( 0.5 )

Run the code above in your browser using DataLab