User Tools

Site Tools


syntax:functions:rem

This is an old revision of the document!


Rem(dividend, divisor)

Category: Number function


Description

This function returns the remainder of the quotient of two numbers.


Arguments

ArgumentTypeDescription
dividendNumberThe value being divided.
divisorNumber, non-zeroThe value the divident is being divided by.


Return value type: Number (Integer)


Remarks

This function performs division much as the expression dividend / divisor would, except that only the remainder of the division, if there is any, is returned as whole number.


Examples

div(12,4) = 0
div(15,3) = 0
div(21,5) = 1  //Remainder only returned as a whole number
div(-14,5) = -4  //Remainder only returned as a whole number


See also

syntax/functions/rem.1627777899.txt.gz · Last modified: 2021/07/31 20:31 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki