log10.php
Table of Contents
Functions
- log10() : string
- Return the base-10 logarithm of a value.
Functions
log10()
Return the base-10 logarithm of a value.
log10(string|int|float $value) : string
This helper wraps the ArangoDB AQL function LOG10(value) which returns
the base-10 logarithm (common logarithm) of a value. The value must be
greater than 0, otherwise it returns null.
Example AQL usage:
LOG10(1) // returns 0
LOG10(10) // returns 1
LOG10(100) // returns 2
LOG10(1000) // returns 3
LOG10(0) // returns null (invalid input)
Parameters
- $value : string|int|float
-
The input value (must be greater than 0).
Tags
Return values
string —The formatted AQL expression.