Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

This function returns the remainder after division of the dividend by the divisor.


Code Block
languagebash
titleSyntax
linenumberstrue
modulus(dividend, divisor) #Output: Number


UI Text Box
typenote
The number divisor cannot be equal to 0.


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{modulus(4,2)}


This example returns:

0




Code Block
languagebash
linenumberstrue
%{modulus(3,2)}


This example returns:

1




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
dividend

Status
subtletrue
titlenumber

Any given number or numeric field code.
divisor

Status
subtletrue
titlenumber

Any given number other than 0 or numeric field code.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber



Page properties
hiddentrue


Short descriptionReturns the remainder after division of the dividend by the divisor.
Output

Status
subtletrue
titlenumber