BCD Character Decompression, Any PHP expert can help me to solve this problem, please?
Any In Build function in PHP for this?, Am Just database programmer who do not have knowledge in binary data values. Give me a start by providing help tips.
BCD Character Decompression1. Apply One Complement method on the Binary 1100
2. The Value obtained after complementing is binary 0011
3. Binary 0011 in decimal value is 3
4. Add the decimal value 48 to 3 will give 51
5. The decimal value 51 in ASCII character is “3”
ExampleTo decompress the value of data received which is “±”
Step 1. The decimal value for “±” is 216 or a Binary value of 11011000
Step 2. By Applying One Complement to 11011000, the resultant value is 00100111
Step 3. The Data value of 00100111 is ‘27’, i.e. first 4-bits 0010 represent ‘2’
And the second 4-bits 0111 Represent ‘7’
Sample compress data: http://219.93.83.82/php/klse/ipListen.php