Learn R Programming

bracketeer (version 0.1.1)

is_power_of_2: Check if n is a power of 2

Description

Check if n is a power of 2

Usage

is_power_of_2(n)

Value

Logical

Arguments

n

A positive integer