Hacker Newsnew | comments | show | ask | jobs | submit login

Every positive number is a power of 2. Yes, I know, but there is no mention of "integer". Btw, I would just check if log2(x) is an integer.



positive, real

-----


Right, if you are going to be pedantic, you should go all the way to the end.

-----




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: