◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
Divides one number by another and returns the remainder.
numeric-expression1 MOD numeric-expression2
■ numeric-expression1 Any numeric expressions. Real numbers are
numeric-expression2 rounded to integers.
Example:
PRINT 19 MOD 6.7 'QBasic rounds 6.7 to 7, then divides.
'Output is: 5
──────────────────────────────────────────────────────────────────────────────
© Copyright Microsoft Corporation, 1987-1992. All rights reserved.
Converted from qbasic.hlp with DosHelp/HelpConvert