Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourYellowGreen
titleReady for reviewdone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


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

Status
subtletrue
titlenumber




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.
divisor

Status
subtletrue
titlenumber

Any given number other than 0.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber