J
Julie
I am trying to take a number 64001072 and get this value into a 3-byte binary value.
I have tried:
$val = 640001072;
$value = pack("l",$val);
($s1, $s2, $s3, $s4) = unpack("CCCC",$value);
$new_value = pack("CCC",$s3,$s2,$s1);
this works for other values, but does not seem to work for this value.
Any suggestions???
Thanks,
Julie
I have tried:
$val = 640001072;
$value = pack("l",$val);
($s1, $s2, $s3, $s4) = unpack("CCCC",$value);
$new_value = pack("CCC",$s3,$s2,$s1);
this works for other values, but does not seem to work for this value.
Any suggestions???
Thanks,
Julie