log10
来自cppreference.com
< cpp | numeric/math
语法:
#include <cmath> double log10( double num );
log10() 函数返回num以10为底(或者通用)的对数。如果num是负值发生域错误,如果是零发生范围错误。
C++ 也提供了下列重载形式:
#include <cmath> float log10( float num ); // same as log10f() in C99 long double log10( long double num ); // same as log10l() in C99
相关主题: log