Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
int main() { printf("%f\n", log2(64.0)); printf("%f\n", log2(10.0)); printf("%f\n", log2(3.1623)); printf("%f\n", log2(1.0)); printf("%f\n", log2(0.0)); printf("%f\n", log2(-1.0)); return 0; }
6.000000
3.321928
1.660974
0.000000
-inf
-nan