MOD() doesn't work

Post Reply
davey110
Posts: 100
Joined: Mon Dec 26, 2016 11:01 pm
My devices: iPhone SE 2020
iPad mini 2
Flag: Canada

MOD() doesn't work

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4794
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: MOD() doesn't work

Post by Mr. Kibernetik »

There is no MOD function in Basic.

Post Reply