In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Joe, A value is only negative (less than zero) if you choose to look at it that way. So with byte variables -1 is equal to 255. It just depends on what YOU want it to be. Normal signed values use the MSB to indicate if the value is negative. If the MSB is high, then the value is negative. It gets tricky to do the comparision because either one, none, or both of the value could be negative. And you must trap all conditions. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=136064#m136068 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)