syntax:functions:div
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
syntax:functions:div [2017/12/23 09:01] – created dmitry | syntax:functions:div [2021/08/11 15:16] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== div(number, number) ======= | + | ====== Div(dividend, divisor) ====== |
+ | Category: | ||
- | Returns | + | \\ |
+ | =====Description===== | ||
+ | This function returns | ||
- | ^ | + | \\ |
- | | div(10,3) | + | =====Arguments===== |
+ | ^Argument^Type^Description^ | ||
+ | |dividend|Number|The value being divided.| | ||
+ | |divisor|Number | ||
+ | \\ | ||
+ | **Return value type: | ||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | This function performs division much as the expression // | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | div(12,4) //Returns 3 | ||
+ | |||
+ | div(15,3) //Returns 5 | ||
+ | |||
+ | div(21,5) //Returns 4 (Decimal portion (remainder) is not returned) | ||
+ | |||
+ | div(-14,5) //Returns -2 (Decimal portion (remainder) is not returned) | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: | ||
- | See also: | ||
- | * [[syntax: |
syntax/functions/div.1514037669.txt.gz · Last modified: 2017/12/23 09:01 by dmitry