MOD() doesn't work
Posted: Tue Sep 30, 2025 6:58 pm
The statement PRINT MOD(a,b) (where a & b have been given values) doesn't work. "mod" doesn't even capitalize. The program thinks it's an array so gives an error. And it's not documented that I can find (although it's mentioned in the Survival Guide).
The "shortcut" statement PRINT a%b works fine. What's gone wrong?
I thought MOD() used to work, but I can't find a program that I used it in.
The "shortcut" statement PRINT a%b works fine. What's gone wrong?
I thought MOD() used to work, but I can't find a program that I used it in.