log10
Section: C Library Functions (3)
Updated: 2026-02-08
Index
JM Home Page
roff page
名前
log10, log10f, log10l - 底が 10 の対数関数
ライブラリ
数学ライブラリ (libm,~-lm)
書式
#include <math.h>
double log10(double x);
float log10f(float x);
long double log10l(long double x);
glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):
log10f(), log10l():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
説明
These functions return the base-10 logarithm of x.
返り値
On success, these functions return the base-10 logarithm of x.
x が 0、1、負、無限大、NaN などのさまざまな特別な状況については、 log(3) を参照のこと。
エラー
これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は math_error(7) を参照のこと。
これらの関数で発生するエラーについては、 log(3) を参照のこと。
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
log10(),
log10f(),
log10l()
| Thread safety | MT-Safe
|
標準規格
C11, POSIX.1-2008.
歴史
C99, POSIX.1-2001.
double 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
関連項目
cbrt(3), clog10(3), exp10(3), log(3), log2(3), sqrt(3)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 返り値
-
- エラー
-
- 属性
-
- 標準規格
-
- 歴史
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.