Grokking MongoDB
0% completed
Advanced Arithmetic Operators
Six arithmetic operators go beyond sums and rounding. They raise numbers to powers, take roots, and calculate logarithms.
| Operator | What it returns | Arguments |
|---|---|---|
$pow | The first number raised to the power of the second | Exactly two |
$sqrt | The square root | One |
$exp | The constant e raised to the given power | One |
$ln | The logarithm in base e | One |
$log | The logarithm of the first number in the base of the second | Exactly two |
$log10 | The logarithm in base 10 | One |
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%