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.
MOD() doesn't work
- Mr. Kibernetik
- Site Admin
- Posts: 4794
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: MOD() doesn't work
There is no MOD function in Basic.