Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

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



Page properties
hiddentrue


Short descriptionReturns dividend - (divisor * floor(dividend / divisor)).
Output

Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

This function returns dividend - (divisor * floor(dividend / divisor)).

The following functions are used:


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


Expand
titleinfo on calculations...


UI Text Box
typeinfo

4 - (2* floor(4/2)) = 4 - (2*2) = 0





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