In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: The key to remember with modulus ( // operator ) is that it will always return a value between zero and the divisor-1. As you need a result of zero to 25, 26 is used as the divisor. Yes, rVal is a byte and should be kept as a separate variable. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=193221#m193265 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)