| MINIMUM | Index Level | NE |
| Syntax | MOD( dividend, divisor ) |
| Category | BASIC |
| Type | Function |
| Description |
returns just the remainder portion of the result of dividing one number by another.
There is no limitation on the numeric value of dividend or divisor. The "rem" and "mod" functions are identical. |
| Options | |
| See Also | NOT REM statements & functions functions \= \ |
| Example |
for i = 1 to lines
print rec<i> if not(mod(i,60)) then print char(12): next i In this example, "mod" is used to find the end of a page. Every 60 lines, a form feed, char(12), is printed. |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| MINIMUM | Index Level | NE |