is.pow2: is.pow2 function

Description Usage Arguments Value Examples

View source: R/lgcpMethods.R

Description

Tests whether a number id

Usage

1
is.pow2(num)

Arguments

num

a numeric

Value

logical: is num a power of 2?

Examples

1
2
is.pow2(128)  # TRUE
is.pow2(64.9) # FALSE

lgcp documentation built on May 22, 2018, 5:05 p.m.