Returns the logarithm of a number to a specified base
Category: math
Syntax:
Log([number_column], [base])
Returns: Float
Context Filtering: ✓ Yes
Parameters
| Name | Type | Required | Description |
|---|
number | number or column | ✓ Yes | The number to compute the logarithm of |
base | number or column | ✓ Yes | The base of the logarithm |
Allowed Column Types for number: INT, FLOAT, DECIMAL
Allowed Column Types for base: INT, FLOAT, DECIMAL
Validation
- Minimum parameters: 2
- Maximum parameters: 2
Examples
Logarithm of 100 to base 10
Result: 2
Logarithm of each value to base 2 Last modified on March 13, 2026