QBasic 1.1: MOD Operator

Syntax

numeric-expression1 MOD numeric-expression2

Description / Parameter(s)

numeric-expression1
numeric-expression2
Any numeric expressions. Real numbers are rounded to integers.

Example

PRINT 19 MOD 6.7 'QBasic rounds 6.7 to 7, then divides. 'Output is: 5