xs_is_2power

Синтаксис

stock xs_is_2power(x)

Употреба

x
Number to check.

Описание

Checks if the number is a power of 2.

Връщаща стойност

1 if it is a power of 2, 0 otherwise.