carbon v1.4.0 (2015-04-19T16:14:18Z)
Home
Dub
Repo
isPowOf2
carbon
math
Undocumented in source. Be warned that the author may not have intended to support it.
bool
isPowOf2
(
I
)
(
I
n
)
if
(
is
(
typeof
(
n
&&
(
n
&
(
n
- 1
)
)
== 0
))
)
Meta
Source
See Implementation
carbon
math
functions
isPowOf2
isPrime
lcm
primeFactors
primeFactorsSimple
sqrtCeil
sqrtFloor
toDeg
toRad