Mathematical functions (Azure Cosmos DB)

The mathematical functions each perform a calculation, based on input values that are provided as arguments, and return a numeric value.

You can run queries like the following example:

    SELECT VALUE ABS(-4)

The result is:

    [4]

Functions

The following supported built-in mathematical functions perform a calculation, usually based on input arguments, and return a numeric expression:

All mathematical functions, except for RAND, are deterministic functions. This means they return the same results each time they are called with a specific set of input values.

Next steps