bits and bytes - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Closed Thread
Thread Tools Display Modes
Old 07-27-2005, 09:11 PM   #1 (permalink)
Ultra Techie
Join Date: Jun 2005
Posts: 718
Default bits and bytes

ok, I been reading up a little on this topic on howstuffworks and I have a question. I understand that there are 8 bits in a byte. In the article (which you can see here )it said that "With 8 bits in a byte, you can represent 256 values ranging from 0 to 255."

thats where I get lost....

j4ckaL is offline  
Old 07-27-2005, 10:30 PM   #2 (permalink)
Junior Techie
Join Date: Jan 2005
Posts: 55

it use binary system
255(D) equals to 11111111(B)...
range : 00000000~11111111 (0~255)

Simple is best
Learning English ...
alexanderxyh is offline  
Old 07-27-2005, 10:40 PM   #3 (permalink)
Ultra Techie
Join Date: Jun 2005
Posts: 718

yeah but what I don't get is why does it only go up to 255?
j4ckaL is offline  
Old 07-27-2005, 10:45 PM   #4 (permalink)
Super Techie
Join Date: Feb 2004
Posts: 416
Send a message via AIM to chog

Those 8 bits are broken down like this,

1 2 4 8 16 32 64 128

So you use a 1 to represent that number, like 0 would be 00000000, 16 would be 00001000 and so forth. If you add them all together, the max number is 255.
chog is offline  
Old 07-27-2005, 11:06 PM   #5 (permalink)
Ultra Techie
Join Date: Jun 2005
Posts: 718

ah I see, that makes alot more sense now.


learning a new number system is kind of confusing. I'll get it eventually. Man do I feel stupid. lol
j4ckaL is offline  
Old 07-29-2005, 08:57 PM   #6 (permalink)
Junior Techie
Join Date: Apr 2005
Posts: 67

Chog is backwards though, it is:

128 64 32 16 8 4 2 1

Binary is based on the number 2, the digit that is furthest to the right is 2 ^ 0, or 1. To the left of that is 2 ^ 1, to the the left of that is 2 ^ 2 and so on.
mestizo122 is offline  
Old 07-29-2005, 09:10 PM   #7 (permalink)
Ultra Techie
Join Date: Jul 2005
Posts: 530
Send a message via AIM to TheHeadFL

Its easier just to say that, since we start at 0 and not 1, that a number represented by 8 bits can represent numbers up to 2^8th - 1.

In general, any number with N bits can hold numbers as large as 2^N - 1.

Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache)
TheHeadFL is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 09:21 PM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.