RsD0p9BK
2/7/2017 - 12:12 PM

cast_to_unsigned.js

// Cast From Signed To Unsigned

a = parseInt(869158009957446) >>> 0;
// 2658135110
// http://stackoverflow.com/questions/6798111/bitwise-operations-on-32-bit-unsigned-ints

b = (new Uint32Array([869158009957446]))[0];
// 2658135110
// http://stackoverflow.com/questions/14890994/javascript-c-style-type-cast-from-signed-to-unsigned