divide( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Divides 1 expression by another.

The divide() method configures the aggregation pipeline to divide the first expression by the second expression.

Method Declaration
Copy
Method Parameters
firstExpression

Expression to divide by second. Expression must resolve to a number.


secondExpression

Expression to divide first by. Expression must resolve to a non-zero number.

Returns
Return Type:DivideExpression
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?