menu
scidart package
documentation
numdart.dart
isPowerOf2 function
isPowerOf2 function
dark_mode
light_mode
isPowerOf2
function
bool
isPowerOf2
(
int
n
)
CHeck if
n
is power of 2.
Implementation
bool isPowerOf2(int n) => (n & (n - 1)) == 0;
scidart package
documentation
numdart
isPowerOf2 function
numdart library