Page 1 of 1

MOD() doesn't work

Posted: Tue Sep 30, 2025 6:58 pm
by davey110
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.

Re: MOD() doesn't work

Posted: Wed Oct 01, 2025 12:50 am
by Mr. Kibernetik
There is no MOD function in Basic.