is.pow2 | R Documentation |
Tests whether a number id
is.pow2(num)
num |
a numeric |
logical: is num a power of 2?
is.pow2(128) # TRUE
is.pow2(64.9) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.