J
JustChilling
Enthusiast
Okay, so I have a program that needs to be able to take large decimal hashes such as -536774902 and turn them into the signed hexadecimal representation E001770A
Now I didn't just come straight here with my problem, I have had this bug for over a month now and never could fix the issue. I would really appreciate any help you guys can give. I am writing the script in PHP, but the PHP and C/C++/C# libraries are very similar so help in any language would be greatly appreciated.
I would put up a function for what I had so far, but I tried dozens of ways and none of them worked so I got rid of them all. It's able to run on a 32 bit machine (I know because the Xbox 360 runs it) so there must be a way to convert it. I already tried several methods involving two's compliment and they all came out with the unsigned hexadecimal version.
I honestly think this is a unique problem because one of the first hits on Google was a broken function I put on pastebin to show to a friend who tried to help. So I doubt anyone has done this before on here, but if you know how or think you know how please help me out here. Thanks
Now I didn't just come straight here with my problem, I have had this bug for over a month now and never could fix the issue. I would really appreciate any help you guys can give. I am writing the script in PHP, but the PHP and C/C++/C# libraries are very similar so help in any language would be greatly appreciated.
I would put up a function for what I had so far, but I tried dozens of ways and none of them worked so I got rid of them all. It's able to run on a 32 bit machine (I know because the Xbox 360 runs it) so there must be a way to convert it. I already tried several methods involving two's compliment and they all came out with the unsigned hexadecimal version.
I honestly think this is a unique problem because one of the first hits on Google was a broken function I put on pastebin to show to a friend who tried to help. So I doubt anyone has done this before on here, but if you know how or think you know how please help me out here. Thanks