I'm finding the MOD operand is not working when I enter it in the BASIC prompt. This is how I write it out.

PRINT 1 * MOD(23)

?SN Error

I have looked into a reference guide and it is too broad on the MOD operand. On page 10 in the link.

TRS-80 Model 100 Reference


MOD is an operator, not a function.

Try ? 10 mod 9 and see yourself.


For anyone unfamiliar with mathematics the answer is simple. After trying brute force I found that the format is sometimes confusingly different than pencil and paper.

Here it is.

print 124 MOD 34
  • 5
    Just out of curiosity, what did you think the meaning of a one-operand MOD function would be? – another-dave Apr 3 at 0:58
  • 3
    And why multiply it by one? – Bill Hileman Apr 3 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.