garymgordon
Programmer
I didn't know what forum to post this question into, but it has to do with Perl, so that's why I am here.
Anyhow, my question has to do with converting binary to ascii and visaversa.
In this example:
C is 0x43 and c is 0x63; in binary C is 1000011 and c is 1100011
Now, typically I thought binary was 1,2,4,8,16,32,64
But, it appears that this is 1,2,4,8,16,32,64,128
WHY?
And, if C is equivalent to 43 in ASCII, how is this converted to the 1000011 in the binary example shown above?
I am trying to understand this.
Thanks,
Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
Anyhow, my question has to do with converting binary to ascii and visaversa.
In this example:
C is 0x43 and c is 0x63; in binary C is 1000011 and c is 1100011
Now, typically I thought binary was 1,2,4,8,16,32,64
But, it appears that this is 1,2,4,8,16,32,64,128
WHY?
And, if C is equivalent to 43 in ASCII, how is this converted to the 1000011 in the binary example shown above?
I am trying to understand this.
Thanks,
Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer