Question:

How do I turn the letter S into binary code?

by  |  earlier

0 LIKES UnLike

S=19 so is it 65 + 19 = 84 or is it 65+n-1 = 83?

Lets say it's 83 this is what I know...

I go like this

256 128 64 32 16 8 4 2

Then I need one 64, one 16 and one 2

this tottal up to 82

so I go like this

256 128 64 32 16 8 4 2

.............1...0...1.0.0.1

where do I get the extra one I need for 83?

And is the binary code actualy 101001? because the automatic converter tells me its 01110011

how did it get to that?

Can someone please explain this?

Thank You!

 Tags:

   Report

2 ANSWERS


  1. Value for   'S'    and   's'  is different .

    Another mistake you have done that :-

    .. 256 128 64 32 16 8 4 2 1

    You have not considered 1 i.e. first position for bit 2 ^ 0  .

    Binary vaulue for Capital 'S' is 83 and small 's' is 115

    so your converter showing value for small 's'.

    i.e.  0111 0011

    ok.

    and vaulue for 83 is   0101 0011

                                   = 64+  16  +2 + 1

    . Got it ...??


  2. The ascii code for capital S=19 is 64+19 = 83 (A=1 64+1 = 65)

    83 = 64 + 16 + 2 + 1

    The table should be

    128 64 32 16 8 4 2 1

    0.....1...0...1..0.0.1.1

    lower case letters

    The ascii code for s=19 is 96+19=115 (a=1 96+1=97)

    115 = 64 + 32 + 16 + 2 + 1

    128 64 32 16 8 4 2 1

    0.....1...1...1..0.0.1.1

    (notice that the binary representation for lower-case letters is the same as the one for the corresponding upper-case letter except for bit 6 (32))

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.