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