Skip to content
Advertisement

Tag: 32-bit

Binary to Decimal 32bit signed with PHP

I currently have a Decimal that is coming through as: 4294960896 This is then converted to Binary with this function: Which equals: 11111111111111111110011100000000 I then need to take that binary and convert it to the 32bit signed version which should be ‘-6400’ I can’t seem to find any built in functions that support 32bit signed output. Answer The hexadecimal representation

Advertisement