Search found 1 match

by lulu78
Sun Nov 30, 2008 12:29 am
Forum: Bugs / Application Errors
Topic: Error on MOD operator?
Replies: 1
Views: 4051

Error on MOD operator?

Hello,
That seems too crazy ... I must make a silly mistake! But ...

li is a byte

li = 255 MOD 4 show in variables window 3 ... that's OK

li=0
li = (li-1) MOD 4 show 255 ???

li = (li-1) AND 0b00000011 do the job fine of course.

Some ideas?
Best regards.