Editar

Compartilhar via


log()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

The natural logarithm is the base-e logarithm: the inverse of the natural exponential function (exp).

Syntax

log(number)

Learn more about syntax conventions.

Parameters

Name Type Required Description
number real ✔️ The number for which to calculate the logarithm.

Returns

  • log() returns the natural logarithm of the input.
  • null if the argument is negative or null or can't be converted to a real value.

Example

print result=log(5)

Output

result
1.6094379124341003
  • For common (base-10) logarithms, see log10().
  • For base-2 logarithms, see log2().