Silly question: Two variables, A containing -1 and b containing 1: rega = b'11111111' regb = b'00000001' rega is a signed integer, regb is unsigned. How do I do a comparision using cpfslt on these two? Do I just complement rega then do the comparison? I don't believe this is correct, but maybe I am not thinking it all the way through. rega obviously can be a positive integer also so that would throw that out. So thinking aloud there, do I check the sign bit then complement if its negative, then do the comparision? Regards, Bob -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist