Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Missing MOD operation

Author
Message
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 23rd Dec 2002 01:23
Am I missing somthing?

The documentation refers to a MOD (or Modulus) Command see below yet this command does not compile in DBPro

The MOD specifies that the data on the left side of the MOD is to be divided by the data on the right side of the MOD,
and the remainder of the division is the result:

11 MOD 2 equals 1
A MOD B equals the remainder of the division between A and B
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 23rd Dec 2002 01:30
Cant see any documentation for a MOD command - and its not highlighted, so I suspect its missing.

You could either e-mail Lee about it, or perhaps write a plug-in for it...

Good news everyone! I really am THAT good...
Oh my, yes...
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 23rd Dec 2002 01:37
There was supposed to be a patch 3.2, but I suppose that's been shelved in favour for Patch 4

Good news everyone! I really am THAT good...
Oh my, yes...
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 23rd Dec 2002 01:44
Erm....

print 11 mod 2

prints 1 here. No syntax highlighting, but it compiles.

Ogres have layers.
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 23rd Dec 2002 01:47
Ah - obviously a command they forgot about...

Good news everyone! I really am THAT good...
Oh my, yes...

Login to post a reply

Server time is: 2024-05-04 22:17:00
Your offset time is: 2024-05-04 22:17:00