Log

Calculate a logarithm (the exponent to which a base number must be raised) to produce a given number.

Input

Field Definition Type Required
input Number for which to calculate a specified logarithm. Number TRUE
base Base of the logarithm, usually 10. Number TRUE

Output

Field Definition Type
output Power to which the base number must be raised to produce the value in the input field. Number

Example

If input is 100 and base is 10, then output is 2 (10^2 = 100).

If input is 8 and base is 2, then output is 3 (2^3 = 8).

Related topics

Functions in Workflows

About the elements of Okta Workflows