Re: Might be a dumb division question...
I don't think so. What if Word2 = 1 your result would be 1000000 which is well beyond 65535 a WORD variable can handle. You'd have to use a PBP LONG and a 18F chip I think.
In such a case you con intercept the condition with an "IF / THEN" instruction, so that you can handle the error.
For instante: If Word2 is less than 16 goto skip. And handle the math in a different way.
Cheers
Al.
Last edited by aratti; - 25th July 2013 at 07:49.
All progress began with an idea
Bookmarks