HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jass Modulus Operator?

01-19-2003, 08:21 AM#1
FM_TertiaryEye
Has anyone seen or heard of a modulus operator / function in jass? Most Scripting languages have them, ive tried the traditional ones to no avail:

8 % 5, 8 mod 5, mod(8, 5), Mod(8, 5), Modulus(8, 5)

Let me know if anyones heard of anything, its a very useful tool.

FM_TertiaryEye
01-19-2003, 09:32 AM#2
AIAndy
There is no native modulus operator in JASS. In Blizzard.j is a function to compute the modulus but you can always get x modulus y with x - (x / y) * y .
BTW, this question belongs in the JASS forum.
01-19-2003, 10:38 AM#3
FM_TertiaryEye
Ok thanks, someone will come by and move it eventually.