Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

MOD

Divides one number by another and returns the remainder.

Syntax

numeric_expression1 MOD numeric_expression2

Comments

numeric_expression1 and numeric_expression2 represent any numeric expressions.

Example

PRINT 19 MOD 6.7

QBasic will round 6.7 to 7 and then calculate the result…

5