Cypher Log10 Function

log10() returns the common logarithm (base 10) of a number.

Syntax: log10(expression)

Returns: A Float.

Arguments

NameDescription
expressionA numeric expression.

Example

RETURN log10(15)

The value returned will be the log of 15 to the base 10, which is 1.1760912590556813.

Considerations

  • log10(null) returns null.
  • log10(0) returns -Infinity.
  • log(<Any negative number>) returns NaN (Not a Number).

Example

RETURN log10(1)

Returns the following Result

log10(1)
0.0

Example

RETURN log10(10)

Returns the following Result

log10(10)
1.0

Example

RETURN log10(100)

Returns the following Result

log10(100)
2.0

Example

RETURN log10(50)

Returns the following Result

log10(50)
1.6989700043360187

Example

RETURN log10(-1)

Returns the following Result

log10(-1)
NaN

Notelog10(<Any Negative Number>) returns NaN.

Example

RETURN log10(null)

Returns the following Result

log10(null)
null

Notelog10(null) returns null.

Example

RETURN log10(0)

Returns the following Result

log10(0)
-Infinity

Notelog10(0) returns -Infinity.

Learn More