In SX Microcontrollers, SX/B Compiler and SX-Key Tool, skynugget wrote: hey jonnnymac, does this look right to you... chlevel = 852 in debug when im expecting like 4_950.. without the math it works ok. [code] Main: FOR chan = 0 TO 7 chLevel = GET_ADC chan tmpW1 = chLevel ** $3880 chLevel = chLevel + tmpW1 WATCH chan, 8, udec ' use Debug --> Run WATCH chLevel, 12, udec BREAK NEXT [/code] danke very much ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=332227#m332602 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)