Arithmetic Functions
This applies to: Visual Data Discovery
Custom metrics support the following arithmetic functions in your aggregate functions.
The following table describes the supported arithmetic functions.
Function | Type | Description |
---|---|---|
| numeric | Returns numeric1 raised to the power of numeric2. |
| numeric | Returns the remainder (modulus) of numeric1 divided by numeric2. The result is negative only if numeric1 is negative. |
| numeric | Returns the square root of numeric. |
| numeric | Returns the natural logarithm (base e) of numeric. |
| numeric | Returns the base 10 logarithm of numeric. |
| numeric | Returns e raised to the power of numeric. |
| numeric | Rounds numeric up, returning the smallest integer that is greater than or equal to numeric. |
| numeric | Rounds numeric down, returning the largest integer that is less than or equal to numeric. |
| numeric | Rounds numeric1 to optionally numeric2 (if not specified 0) places right to the decimal point. |
| numeric | Generates a random double between 0 and 1 inclusive, optionally initializing the random number generator with seed. |
| numeric | Returns the signum of numeric. |
| numeric | Returns the sine of numeric. |
| numeric | Returns the cosine of numeric. |
| numeric | Returns the tangent of numeric. |
| numeric | Returns the cotangent of numeric. |
| numeric | Returns the arcsine of numeric. |
| numeric | Returns the arc cosine of numeric. |
| numeric | Returns the arctangent of numeric. |
| numeric | Returns a value that is closer than any other value to pi. |
| numeric | Converts numeric from radians to degrees. |
| numeric | Converts numeric from degrees to radians. |