MathHelperIsPowerOfTwo Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Determines whether the specified number is a power of two.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static bool IsPowerOfTwo(
	ulong number
)

Parameters

number
Type: SystemUInt64
The number to check.

Return Value

Type: Boolean
Returns true if the specified number is a power of two; otherwise, returns false.
See Also

Reference