Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { cout << log2(64.0) << "\n"; cout << log2(10.0f) << "\n"; cout << log2(3.1623) << "\n"; cout << log2(1.0) << "\n"; cout << log2(0.0f) << "\n"; cout << log2(-1.0f) << "\n"; return 0; }
6
3.32193
1.66097
0
-inf
-nan