xs_is_2power
Syntax
stock xs_is_2power(x)
Usage
| Parameter | Description |
|---|---|
| x | Number to check. |
Description
Checks if the number is a power of 2.
Return
1 if it is a power of 2, 0 otherwise.
stock xs_is_2power(x)
| Parameter | Description |
|---|---|
| x | Number to check. |
Checks if the number is a power of 2.
1 if it is a power of 2, 0 otherwise.