メインコンテンツまでスキップ
バージョン: 3.2

log10, dlog10

説明​

数値の常用対数を計算します。

構文​

log10(arg)

パラメータ​

  • arg: 対数を計算したい値。DOUBLE データ型のみサポートされています。

注意

arg が負の値または 0 に指定された場合、StarRocks は NULL を返します。

戻り値​

DOUBLE データ型の値を返します。

例​

例 1: 100 の常用対数を計算します。

select log10(100);
+------------+
| log10(100) |
+------------+
| 2 |
+------------+
1 row in set (0.02 sec)
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.