Help with binary

  • randalserrano
    7th May 2011 Member 0 Permalink
    If anyone could help me with the concept of binary and decimal in TPT, it would be greatly appreciated. I have almost no clue how it works.
  • Uberness
    7th May 2011 Member 0 Permalink
    @randalserrano (View Post)
    First you've got to know binary.
    Basically, this is how it works:
    There's numbers that double themselves each line...............
    1
    2
    4
    8
    16
    32
    64
    128
    Ext.

    Each row adds together if the value is 1
    If it's 0 it's not counted
    00000000 would be 0 in decimal.
    00000001 would be 1 in decimal.
    00000010 would be 2 in decimal.
    00000011 would be 3 in decimal.
    00000100 would be 4 in decimal.
    Ext.
  • randalserrano
    7th May 2011 Member 0 Permalink
    weird. that is confusing withing its self. how do you get 00000000 would be 0 in decimal.
    00000001 would be 1 in decimal.
    00000010 would be 2 in decimal.
    00000011 would be 3 in decimal.
    00000100 would be 4 in decimal? i don't get that whatsoever
  • MasterMind555
    7th May 2011 Member 0 Permalink
    @randalserrano (View Post)
    0 Makes sense
    1 Makes sense
    2 Makes sense
    But 3 and 4 don't to my non-binary mind...
  • randalserrano
    7th May 2011 Member 0 Permalink
    same here.
    you would think that 3 would be
    00000100 and so on.
  • Uberness
    7th May 2011 Member 0 Permalink
    @randalserrano (View Post)

    128+64+32+16+8+4+2+1 = 255 in decimal
    11111111 =255 in decimal.
  • desred3
    7th May 2011 Member 0 Permalink
    it´s a system with only two digits, that in groups of 8bits, form characters or numbers.this groups are called bytes, and groups of bytes form different words or other things, and so on.. It's confusing but the hexadecimal system is more confusing... That´s ow it works, and that's how computers work...
  • randalserrano
    7th May 2011 Member 0 Permalink
    wait, what? why did you have to ad all of those numbers together?
  • desred3
    7th May 2011 Member 0 Permalink
    it´s logic, because there are only two characters to form so many things
  • Uberness
    7th May 2011 Member 0 Permalink
    @randalserrano (View Post)
    Yes if the executable value of that number is 1.