In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: John, That's pretty cool. Yeah, those WORD variables really come in handy don't they... Since the HC4LED only has 4 digits it didn't make sense to support values > 9999, so I made it support negative numbers. Now that I see your code, I might change mine to use your "divisor = divisor / 10". But I know that divide is going to generate a good bit of code, of course it's only used once. Hmmm... Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=138199#m138295 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)