Javascript Bitwise Operator Confusion
I'm trying to do some bitwise operations in Javascript, 0xff000000 | 0x00aabbcc Which I expect to give me 0xffaabbcc // == 4289379276; However when running this, I get the re
You are getting the right hex value, it's just not the integer value you're looking for.
4289379276 - 2^32 = -5588020
I suppose whether that suffices as is depends on what you're trying to do with your result.
You may like these posts
Post a Comment for "Javascript Bitwise Operator Confusion"