Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Writing in Binary  (Read 1896 times)

0 Members and 1 Guest are viewing this topic.

kendulrich

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Windows 7
    Writing in Binary
    « on: September 16, 2016, 01:34:57 AM »
    Hello All,

    First off, If this is the wrong area, Please let me know. I've searched all other topics and feel my question is best suited here.

    I've been confused on is that I understand that 256 Decimal is 100000000.

    My question is that, am I suppose to write it as 100000000? or Since it goes into a second bit,  I guess is the way to say it, that it should be written as 0000000100000000?

    Please let me know, and I'm sorry for the silly/newb question.

    DaveLembke



      Sage
    • Thanked: 662
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Writing in Binary
    « Reply #1 on: September 16, 2016, 05:50:15 AM »
    1 Byte is 0-255, so 2 Bytes are needed to get the range of 256 - 65535

    so

    00000000 11111111 = 255

    and

    00000001 00000000 = 256

    and

    11111111 11111111 = 65535

    Salmon Trout

    • Guest
    Re: Writing in Binary
    « Reply #2 on: September 16, 2016, 10:55:57 AM »
    Binary can be expressed using no more digits than needed. You would not write 0001000 in decimal if you meant one thousand. It is common to prefix a decimal number with a zero and a lower case b.



    However if you are dealing with (for example) nibble, byte, word (4,8, or 16 bits) sized chunks of data you would pad with as many leading zeros as necessary e.g.:

    Bit:     1
    Nibble:  0101
    Byte:    00000101
    Word:    0000000000000101

    « Last Edit: September 16, 2016, 11:16:41 AM by Salmon Trout »

    kendulrich

      Topic Starter


      Newbie

      • Experience: Beginner
      • OS: Windows 7
      Re: Writing in Binary
      « Reply #3 on: September 16, 2016, 01:54:18 PM »
      Thank you for the clarification. I really appreciate it!