syntax:functions:rem
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
syntax:functions:rem [2017/12/23 09:01] – created dmitry | syntax:functions:rem [2021/08/11 15:32] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== rem(number, number) ======= | + | ====== Rem(dividend, divisor) ====== |
+ | Category: | ||
- | returns the remainder of quotient of two numbers. | + | \\ |
+ | =====Description===== | ||
+ | This function | ||
- | ^ | + | \\ |
- | | rem(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 // | ||
- | See also: | + | \\ |
- | * [[syntax: | + | =====Examples===== |
+ | |||
+ | rem(12,4) //Returns 0 | ||
+ | |||
+ | rem(15,3) //Returns 0 | ||
+ | |||
+ | rem(21,5) //Returns 1 (Remainder only returned as a whole number.) | ||
+ | |||
+ | rem(-14,5) //Returns -4 (Remainder only returned as a whole number.) | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: |
syntax/functions/rem.1514037714.txt.gz · Last modified: 2017/12/23 09:01 by dmitry