Calculates the natural logarithm (base e) of a number.
FLOAT64Diperbarui: 13 Jun 2026LN(expression)A positive number
1 SELECT 2 LN(1) as ln_1, 3 LN(EXP(1)) as ln_e, 4 LN(10) as ln_10;
Natural logarithm of various values.
| ln_1 | ln_e | ln_10 |
|---|---|---|
| 0.0 | 1.0 | 2.302.. |
1 SELECT 2 revenue, 3 LN(revenue + 1) as log_revenue 4 FROM `project.dataset.sales`;
Log transform to normalize a skewed distribution.
Sudah paham LN? Latih langsung di browser
Latihan interaktif, langsung di browser.