powered by
is.pow2(num)
is.pow2(128) # TRUE is.pow2(64.9) # FALSE
Run the code above in your browser using DataLab