Skip to content

$log10

Computes the base-10 logarithm of a numeric expression.

Syntax

{ "$log10": <numberExpression> }

Example

Input

{ "latencyMs": 250 }

Stage

{ "$project": { "logLatency": { "$log10": "$latencyMs" } } }

Output

{ "logLatency": 2.3979400086720375 }