Binary help | xltronic messageboard
 
You are not logged in!

F.A.Q
Log in

Register
  
 
  
 
(nobody)
...and 497 guests

Last 5 registered
Oplandisks
nothingstar
N_loop
yipe
foxtrotromeo

Browse members...
  
 
Members 8025
Messages 2614128
Today 7
Topics 127542
  
 
Messageboard index
Binary help
 

offline brokephones from Londontario on 2005-09-14 11:05 [#01723000]
Points: 6113 Status: Lurker



Hello. I am dumb.

Why is the highest decimal number possible with 8 bits 225?
How is the 1 subtracted to make it that instead of 256?

Thanks


 

offline dog_belch from Netherlands, The on 2005-09-14 11:07 [#01723001]
Points: 15098 Status: Addict | Show recordbag



Does it start with 0, or soemthing, am I in the right..
thing?


 

offline brokephones from Londontario on 2005-09-14 11:12 [#01723002]
Points: 6113 Status: Lurker | Followup to dog_belch: #01723001



The first digit is 2^0, or 1.


 

offline brokephones from Londontario on 2005-09-14 11:13 [#01723004]
Points: 6113 Status: Lurker



At least thats what you use when converting from decimal.
Me confused.


 

offline elusive from detroit (United States) on 2005-09-14 11:21 [#01723006]
Points: 18368 Status: Lurker | Show recordbag



2^7 = 128
2^6 = 64
2^5 = 32
2^4 = 16
2^3 = 8
2^2 = 4
2^1 = 2
2^0 = 1

add them all up = 256

Start right to left
Left bit being most significant



 

offline elusive from detroit (United States) on 2005-09-14 11:23 [#01723007]
Points: 18368 Status: Lurker | Show recordbag



for example, the 8 bit (base 2) number 11010001 =
write it out, left most bit being the most significant
thus,
2^7 = 128 (1)
2^6 = 64 (1)
2^5 = 32 (0)
2^4 = 16 (1)
2^3 = 8 (0)
2^2 = 4 (0)
2^1 = 2 (0)
2^0 = 1 (1)

add up all the 1bits
128 + 64 + 16 + 1 = 209


 

offline elusive from detroit (United States) on 2005-09-14 11:25 [#01723008]
Points: 18368 Status: Lurker | Show recordbag



256 = 11111111 (base2)
if you wanted to subtract 1 (base 10) from that, you would
want to take away the 2^0 bit
so you would have

255 = 11111110


 

offline hanal from k_maty only (United Kingdom) on 2005-09-14 11:26 [#01723009]
Points: 13379 Status: Lurker | Followup to elusive: #01723008 | Show recordbag



yeap,thats how id have done it


 

offline impakt from where we do not speak of! on 2005-09-14 11:35 [#01723011]
Points: 5764 Status: Lurker | Show recordbag



You're talking about multiplication of two four-bit
multiplicands whereas you can only represent 0-15 with four
bits, which leaves you with 15*15=225 in decimal.

But an eight-bit binary can goes as high as 11111111 which
is 255, but as 0 count as a number it makes it 256 in
decimal value.

Although some languages/hardware-interfaces has what's
called signed byte variables that reserves one byte for
datasigning, which leaves 225 decimals pr. byte.


 

offline elusive from detroit (United States) on 2005-09-14 11:37 [#01723012]
Points: 18368 Status: Lurker | Show recordbag



i doubt he needs to learn signed/magnitude right now. best
keep it simple


 

offline impakt from where we do not speak of! on 2005-09-14 11:50 [#01723031]
Points: 5764 Status: Lurker | Followup to elusive: #01723012 | Show recordbag



Very well :)


 

offline ecnadniarb on 2005-09-14 11:58 [#01723038]
Points: 24805 Status: Lurker | Followup to elusive: #01723006 | Show recordbag



elusive as much of a genius as you are I would just like to
point out that

2^7 = 128
2^6 = 64
2^5 = 32
2^4 = 16
2^3 = 8
2^2 = 4
2^1 = 2
2^0 = 1

= 255

It is completely obvious it couldn't be 256 given the fact
that any even number plus an odd number (in this case 1) =
an odd number.

We'll also leave the exponent and mantissa stuff out for the
time being :P


 

offline impakt from where we do not speak of! on 2005-09-14 12:00 [#01723041]
Points: 5764 Status: Lurker | Followup to ecnadniarb: #01723038 | Show recordbag



Hahaha, brilliant :p


 

offline dog_belch from Netherlands, The on 2005-09-14 12:27 [#01723063]
Points: 15098 Status: Addict | Show recordbag



These things always leave me knowing less than when I first
started reading the thread.


 

offline elusive from detroit (United States) on 2005-09-14 12:35 [#01723068]
Points: 18368 Status: Lurker | Show recordbag



lol whoops


 

offline goDel from ɐpʎǝx (Seychelles) on 2005-09-14 12:42 [#01723071]
Points: 10225 Status: Lurker | Followup to dog_belch: #01723063



but you actually were in the right direction by saying that
the couting starts with 0.
0-255 is 256 numbers (therefore 256 numbers with the highest
being 255)

brokephones, yes you are
;p


 

offline elusive from detroit (United States) on 2005-09-14 12:53 [#01723079]
Points: 18368 Status: Lurker | Show recordbag



yeah i know, my head is in other places today (work)


 

offline horsefactory from 💠 (United Kingdom) on 2005-09-14 13:12 [#01723090]
Points: 14867 Status: Regular



(anus)


 

offline ecnadniarb on 2005-09-14 13:16 [#01723091]
Points: 24805 Status: Lurker | Followup to horsefactory: #01723090 | Show recordbag



hahaha :D


 

offline brokephones from Londontario on 2005-09-14 14:53 [#01723163]
Points: 6113 Status: Lurker



Thanks, folks. I think I've got it now.


Attached picture

 

offline virginpusher from County Clare on 2005-09-14 14:56 [#01723165]
Points: 27325 Status: Lurker | Followup to dog_belch: #01723063



I know. i lose brain cells this way


 

offline tridenti from Milano (Italy) on 2005-09-14 14:59 [#01723167]
Points: 14653 Status: Lurker | Followup to elusive: #01723007



oh my god!! I studied all those things in my school last
year!

How about the logical doors?

nor, xor, and, nand, xnor etc.. ?

:)


 

offline elusive from detroit (United States) on 2005-09-14 16:04 [#01723251]
Points: 18368 Status: Lurker | Show recordbag



No,
beacuse i don't work in networking everyday

where everything i do is in 8bit octets (decoding)

no ... seriously ... im photocopying this to remind me how
fucking stupid i am ...


 

offline cuntychuck from Copenhagen (Denmark) on 2005-09-14 18:52 [#01723348]
Points: 8603 Status: Lurker



i didnt get any of this shit, but it doesnt mean im dumb, it
means that you guys are freaks!


 


Messageboard index