powered by
Tests whether a number id
is.pow2(num)
a numeric
logical: is num a power of 2?
# NOT RUN { is.pow2(128) # TRUE is.pow2(64.9) # FALSE # }
Run the code above in your browser using DataLab