Boolean for evaluating whole numbers
is.whole(a, tol = 0.0000001)
a | A numeric vector to evaluate, only first element will be evaluated |
---|---|
tol | numeric >= 0, differences smaller than tolerance are not reported |
A Boolean indicating if number is whole or float
Jeffrey S. Evans <jeffrey_evans@tnc.org>
is.whole( 1 )#> [1] TRUEis.whole( 1.5 )#> [1] FALSEis.whole( 0.5 )#> [1] FALSE