powered by
Checks whether a number is near to a whole number
is_nearly_whole(x)
TRUE or FALSE
TRUE
FALSE
a numeric
Kelly Sovacool sovacool@umich.edu
is_nearly_whole(.Machine$double.eps^0.5) is_nearly_whole(.Machine$double.eps^0.6) is_nearly_whole(1)
Run the code above in your browser using DataLab