MOD( x, y ) ?

new BookmarkLockedFalling
veneff
New Member
*

veneff Avatar

Posts: 29

Post by veneff on Jan 27, 2009 10:42:09 GMT -5

This program


PRINT MOD( 1, 2 )
END

FUNCTION MOD( x, y )
MOD = 3
END FUCNTION


generates this error:
Compile Error
Syntax error - MOD = 3

Is there a MOD function?

I tried searching but the forum search function won't allow words less than 4 characters.

Vance

kokenge
Senior Member
****

kokenge Avatar

Posts: 261

veneff
New Member
*

veneff Avatar

Posts: 29

mikeukmid
Guest

Guest Avatar

Post by mikeukmid on Jan 27, 2009 16:07:54 GMT -5

veneff Avatar
Ah Ha, is there any documentation on the available operators?


I was going to quote the wiki runbasic.wikispaces.com/ or the RunBASIC help file but I see MOD is missing from both. ::)

Edit: MOD added to wiki building blocks, feel free to amend entry if you have a better definition, its a public wiki.
Last Edit: Jan 27, 2009 16:24:34 GMT -5 by mikeukmid
Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550

Last Edit: Jan 27, 2009 18:06:17 GMT -5 by Carl Gundel - admin
mikeukmid
Guest

Guest Avatar