Force bitwise operation to return only 0 or 1
#3

Nope, I use the double negation as anything-to-bool converter, so tag mismatch

Why value? I used to write
pawn Код:
new value = 5 * (flag & 8 ? 1 : 0)
Reply


Messages In This Thread
Force bitwise operation to return only 0 or 1 - by Misiur - 19.03.2013, 13:51
Re: Force bitwise operation to return only 0 or 1 - by Vince - 19.03.2013, 13:58
Re: Force bitwise operation to return only 0 or 1 - by Misiur - 19.03.2013, 14:00

Forum Jump:


Users browsing this thread: 2 Guest(s)