qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MOD Arithmetic Operator
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 MOD Arithmetic Operator
 
 ■ The MOD operator is used to divide one number by another and return the
   remainder.
 
 ■ MOD has the following syntax:
 
         numeric-expression1 MOD numeric-expression2
 
   where numeric-expression can be any numeric expression.
 
 ■ Real numbers specified as part of a numeric expression are rounded to
   integer values. For example:
 
         PRINT 19 MOD 6.7         ' Visual Basic rounds 6.7 to 7
                                  ' then divides; the output is 5
 
 See: Arithmetic Operators