In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Hi, I was trying out some math operators with word variables. + (add), - (sub), * (mul), / (div), | (or), ^ (xor), & (and) all compile correctly. The % (mod) opens a dos window with a listing up to the statement where % is used. ramX var word ramY var word result var word ramX = result % ramY gives this strange behaviour. Either the % is not working or it not the mod function. Any comment on this? regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=141014 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)