User Tools

Site Tools


syntax:functions:div

This is an old revision of the document!


Div(dividend, divisor)

Category: Number function


Description

This function returns 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 whole number portion is returned. The decimal portion (remainder) is not returned. Refer to the Rem(number, number) function to capture any remainder.


Examples

div(12,4) = 3
div(15,3) = 5
div(21,5) = 4  //Decimal portion (remainder) is not returned
div(-14,5) = -2  //Decimal portion (remainder) is not returned


See also

syntax/functions/div.1627777526.txt.gz · Last modified: 2021/07/31 20:25 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki