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:

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


Code Block
languagebash
titleSyntax
linenumberstrue
modulus(dividend, divisor) #Output: Number
UI Text Box
colorlight-yellow
iconsuccesstypenote

The number divisor cannot be equal to 0.


UI Expand
titleExamples


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


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


This example returns:

0

expand


 

titleinfo on calculations...
UI Text Box
typeinfo


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 other than 0 or numeric field code.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_modulus" and space = currentSpace()


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


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

Status
subtletrue
titlenumber