Is Power Of Two

Pure
IsPowerOfTwo

Returns true if the integer is a power of two.

Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
ValueintValue parameter

Outputs

NameTypeDescription
ReturnValueboolReturnValue output

Example Use Cases

Example 1

Validate texture dimensions.

Example 2

Check buffer sizes for audio processing.