multiplying a number by two without using Arithmetic and Shift operators

Hi All,

Is it possible to multiply a number by two without using Arithmetic and Shift operators?

_Thanks

Maybe number of logical operation can help you... But... what is the purpose? O_o

Thanks, kandrewo

You can add a zero at the end of a string that represents a binary number without a shift operator, so it seems to me it can be done.

Adding a zero at the end of a string representing a binary number *is* a shift operation.

Perhaps accompish the result with a bunch of 'if' or 'case' statements? Without understanding the purpose of the question, seems more a theoretical question. (Or, a question posed by a teacher to get a student to think of other commands?)

if x=1 then y=2
if x=2 then y=4
and so on...

Perhaps, but there are no shift operators involved...