* Returns the integer division remainder as a whole [[INTEGER]], [[LONG]] or [[_INTEGER64]] value.
* {{Parameter|numerator}} is the [[INTEGER]] value to divide.
* {{Parameter|divisor}} is the [[INTEGER]] value to divide by.
{{PageDescription}}
* Floating decimal point ''numerator'' and ''divisor'' values are [[CINT]] rounded (e.g. {{InlineCode}}19 MOD 6.7{{InlineCodeEnd}} returns 5 just like {{InlineCode}}19 MOD 7{{InlineCodeEnd}} would).
* MOD returns 0 if a number is evenly divisible by integer division ( [[\]] ) or the number divided is 0.
* '''{{Parameter|divisor}} (second value) must not be between 0 and .5'''. This will create a [[ERROR Codes|"Division by zero" error]] due to [[CINT]] rounding the value to 0.
* The result has the same sign as the numerator (e.g. {{InlineCode}}-1 MOD 7{{InlineCodeEnd}} returns -1, not 6).
* Division and multiplication operations are performed before addition and subtraction in QBasic's order of operations.
{{PageExamples}}
''Example 1:''
{{CodeStart}}
I% = 100 {{Cl|\}} 9
R% = 100 {{Cl|MOD}} 9
PRINT "Integer division ="; I%, "Remainder ="; R%
{{CodeEnd}}
{{OutputStart}}
Integer division = 11 Remainder = 1
{{OutputEnd}}
''Explanation:'' Integer division 100 \ 9 returns 11. 11 [[*]] 9 = 99. So the remainder must be 1 as 100 - 99 = 1. Normal decimal point division would return 11.11111.
''Example 2:'' Comparing normal, integer and remainder division.