Learn R Programming

lgcp (version 1.01)

is.pow2: is...

Description

is.pow2 function

Usage

is.pow2(num)

Arguments

num
a numeric

Value

  • logical: is num a power of 2?

Details

Tests whether a number id

Examples

Run this code
is.pow2(128)  # TRUE
is.pow2(64.9) # FALSE}

Run the code above in your browser using DataLab