num
2^32 - num
function toHex(num: number): string { if(num < 0) num += Math.pow(2, 32) return num.toString(16) };