04-12-2011 09:57 AM
hello,
can someone explain this?
04-12-2011 10:04 AM
Hi W3SK,
it's because you use "logical shift" and not "rotate".
Mike
04-12-2011 10:05 AM
Read the context help for the Logical Shift function.
"y can be any numeric representation. If y is greater than 0, the function shifts x left y bits (from least significant to most significant bit) and inserts zeros in the low-order bits. If y is less than 0, the function shifts x right y bits in the positive direction (from most significant to least significant bit) and inserts zeros in the high-order bits."
Put in -4 to rotate 4 bits to the right.
04-12-2011 10:11 AM
thanks, Mike