FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
Modulo
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
Modulo( value_1, value_2, ... )
modulo( value_1, value_2, ... )
Modulo( value_1, value_2, ... )
Modulo( value_1, value_2, ... )
Modulo( value_1, value_2, ... )
Description
The Modulo
function computes the remainder after division on a
list of numbers. Providing a single operand returns the operand.
Attempting to call Modulo
with an empty list results in the error
"Non-empty array expected."
Attempting to compute the remainder of a division by zero results in the error "Illegal division by zero."
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
List of Numbers |
A single value or a list of values. |
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!