| MathHelperIsPowerOf2 Method |
Determines whether the specified value is a power of two.
Namespace: DigitalRune.MathematicsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static bool IsPowerOf2(
int value
)
Public Shared Function IsPowerOf2 (
value As Integer
) As Boolean
public:
static bool IsPowerOf2(
int value
)
static member IsPowerOf2 :
value : int -> bool
Parameters
- value
- Type: SystemInt32
The value.
Return Value
Type:
Boolean if
value is a power of two; otherwise,
.
See Also