(e-mail address removed) escreveu:
Then is there any way to Get 0xDE103FFE but not -21efc002???
Must I use my own code to get translate it?
Since
0xDE103FFE = 3725606910 = 11011110000100000011111111111110
And
~0xDE103FFE + 1 = 569360386 = 100001111011111100000000000010
A xor operation (569360386 ^ 0xffffffff) + 1 would solve your problem:
11111111111111111111111111111111 [XOR]
00100001111011111100000000000010
--------------------------------------------------------
11011110000100000011111111111101 [+ 1] =
11011110000100000011111111111110
But due to the range of numbers available to binary operations, it
won't work
So you must make a work around like this one:
x = 569360386;
alert(((0x7fffffff ^ x) + 0x80000001).toString(16));
I've tested it just with your example number (569360386), so test a
little for me haha =)