运行 ❯
获取
您自己的
网站
×
更改方向
更改主题,深浅色
前往 Spaces
#include <iostream> #include <cmath> 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
-无穷
NaN