Question:
What is binary code, and who can give me a good explanation?
2006-06-02 10:17:56 UTC
Please, I really want to understand it, and no, I am not a math geek type of person. Just a really curious one.! Thanks so much! The answer which is the most helpful will get the points so be thoughtful!
24 answers:
carolinakres
2006-06-02 10:31:07 UTC
binary code is the basis of this computer ****. It is 0 and 1 used in a line to give a command to the computer. Each character you type is translated into a binary code so it could be keyed on the screen. If you want an example check out this address.



http://nickciske.com/tools/binary.php



Letter Binary Code (upper case)



A 01000001

B 01000010

C 01000011

D 01000100

E 01000101

F 01000110

G 01000111

H 01001000

I 01001001

J 01001010

K 01001011

L 01001100

M 01001101

N 01001110

O 01001111

P 01010000

Q 01010001

R 01010010

S 01010011

T 01010100

U 01010101

V 01010110

W 01010111

X 01011000

Y 01011001

Z 01011010



Letter Binary Code (lower case)



a 01100001

b 01100010

c 01100011

d 01100100

e 01100101

f 01100110

g 01100111

h 01101000

i 01101001

j 01101010

k 01101011

l 01101100

m 01101101

n 01101110

o 01101111

p 01110000

q 01110001

r 01110010

s 01110011

t 01110100

u 01110101

v 01110110

w 01110111

x 01111000

y 01111001

z 01111010





Sorta like this. Each string of numbers (0&1) are representing just one character. That is just a reference u wanna be modern day einstein try the mathematical way.



To create Binary numbers just do this:

take your number lets say "115"



step1:

Take each number and divide by two with remainders then take the answer and divide it by 2 untill you reach 1

115/2 = 57 r1

57/2 = 28 r1

28/2 = 14 r0

14/2 = 7 r0

7/2 = 3 r1

3/2 = 1 r1



step2: Take the remainders and this is your binary number

110011 = 115



Simple hunh! just friggin remainders, lol. Im thinking of how to make a better code to become rich. With more than 0 and 1. Like our decimal system used in coding or just get a shorter binary code than six digit ones
George3
2006-06-02 10:35:11 UTC
I'm not sure whether you mean binary files (files created after programming language code is processed (compiled) so that it can be run by a computer) or the binary (base 2) numbering system which a binary file is based on.



Binary Numbers: Represented using only a '1' or '0'. Each position in a number represents a power of 2 (increasing from right to left) and then you add up the ones that have '1's in that position instead of '0's. For example, the binary number

"111" = 2^2 + 2^1 + 2^0 = 4 + 2 + 1 = 7.

Therefore, 111 binary(base2) = 7 decimal(base10)

10 binary = 2^1 + 0 = 2.

Therefore, 10 binary = 2 decimal - hence the joke: "There are 10 kinds of people, those that understand binary and those that don't"



Binary Files: Are files encoded in some sort of binary scheme. Examples: computer code, music, and image files.
agent-X
2006-06-02 10:27:28 UTC
The binary code is a representation of numbers in the decimal format (an dnot only), written only with 0 and 1. All pc's work using this code because it's easy to maintain. IBM tried some time ago to create a decimal code and he managed but soon they gave up because it was too hard to maintain.

Now, the process of transforming a number from its decimal format to the binary one is very simple. Take a number and continuosly divide it by 2, untill you reach either 1 or 0. Put a 1 in front and then all the rest you found on the way (in the reverse oreder) and there you have it.

For example: 7! 7=3*2+1; 3=1*2+1; and 1=0*2+1; the binary code for 7 is 111.

On the pc arhitecture things are a little bit more complicated. For mor einformation search on wikipedia. You'll find everything you need there!
Dan211
2006-06-02 10:27:17 UTC
Binary code is a method of displaying decimal numbers (ie. 1,2,3,4,5,...) with just 0s and 1s. Each 1 or 0 is known as a BInary DigiT (or BIT) which you may have already heard of regarding computers- eight BITs make a byte 1024 bytes make a megabyte etc...



Binary numbers can be read by giving the BITs the following headings: 128 64 32 16 8 4 2 1. So for example the binary number 00001011 has no 128s, no 64s, no 32s, no 16s, one 8, no 4, one 2 and one 1. Therefore the binary number 00001011 + 8+2+1= 11 in decimal.



Therefore the binary number 11111111 = 128+64+32+16+8+4+2+1 =255 in decimal.



For more info visit http://en.wikipedia.org/wiki/Binary_numeral_system



Hope this Helps!
♫ sgrfsh ♪
2006-06-02 10:18:54 UTC
Binary is the mathematical Base 2 -- a number system that only uses the numbers '0' and '1'. Each place in a number can only be either of these numbers. So where in decimal (Base 10) we can count up to 9 before moving to the next 'place', in binary we can only count up to '1'.



Computers do not (except for some very rare decimal examples) understand anything more than binary. All they can do is add and subtract 1s and 0s.



In this simple example we see the number '5' expressed in binary:



128 64 32 16 08 04 02 01 = decimal equivalent

~~0 ~0 ~0 ~0 ~0 ~1 ~0 ~1 = binary string (byte) = 00000101



In this example each '0' or '1' represents a binary digit or 'bit' for short. By adding the decimal places affixed with a '1' we can determine the value being represented. This is a simple example as it's more usual to specify one bit to denote whether the number is positive or negative.



The ancient Indian mathematician Pingala presented the first known description of a binary numeral system in the 3rd century BCE.



A full set of 8 trigrams and 64 hexagrams, analogous to the 3-bit and 6-bit binary numerals, were known to the ancient Chinese in the classic text I Ching. Similar sets of binary combinations have also been used in traditional African divination systems such as Ifa as well as in medieval Western geomancy.



Of course, by assigning the alphabet and other characters to decimal values (also know as American Standard Code for Information Interchange or ASCII) we can also represent text and other complex expressions in binary.



Addition and subtraction are the only mathematical operations a computer can perform. Multiplication is performed by addition and division is performed by subtraction. Subtraction is performed by a system referred to as "two's complement". In days gone by, shopkeepers would count out our change in a similar fashion, thereby using addition to perform subtraction. Essentially, the shopkeeper would take your money ($10). He would then start at the value of the product you bought ($5) and count up until he reached the value of your money... $6, $7, $8, $9, $10. What he ultimately gave you was exactly 10 - 5 = $5. That is how a computer performs subtraction.



The simplest arithmetic operation in binary is addition. Adding two single-digit binary numbers is relatively simple:



0 + 0 = 0

0 + 1 = 1

1 + 0 = 1

1 + 1 = 10 (the 1 is carried)



Binary is also important in the logic used in a computer. Boolean Algebra or 'logic gates' are used to perform every perceivable mathematical and logic function. For example, the AND gate simply takes two values and produces a result based off of those values:



0 AND 1 = 0

1 AND 0 = 0

1 AND 1 = 1



A negative AND (or NAND) gate flips the results.



An OR gate takes two values and if either is '1' then the result is also '1':



0 OR 1 = 1

1 OR 0 = 1

1 OR 1 = 1
2006-06-02 10:28:05 UTC
You're used to dealing with numbers in base 10 -- where every "place" you move over to the left represents a multiple of 10, so that you get 1, 10, 100, 1000, etc.

In base 10 there are 10 digits, 0-9, that can be in each "place", and when you go over 9 you add one to the next place and set the current place back to 0.



Binary is just base 2, with the same rules. However, being base 2, there are only 2 digits -- 0 and 1. When you go over 1 in each "place," you add one to the next place and set the current place back to 0, just like with base 10. It just "turns over places" a lot faster since there are only 2 digits :) So to count in binary, from one to ten, you get:

0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010

Each "place" represents a power of 2 instead of a power of 10, so the place values (right to left) are 1's, 2's, 4's, 8's, 16's, and so on.



Binary is a useful way of representing numbers because the two digits can be represented in electronic circuits as "on" (for 1) and "off" (for 0). That lets computers use electrical signals to do math, and it's the basis of all computer use. Really, it's just another way of representing numbers in a different base, but they're the same numbers. You can have a "base" of anything -- bases of 16 and 8 (hexadecimal and octal) are especially useful when dealing with computers also, since they're power of 2 bases that require less digits than binary. For example, the number 10 in different bases looks like:



Base 10: 10

Base 2: 1010

Base 8: 12

Base 16: 0A (since we only have 0-9 as numbers in our writing system, we use A-F to represent 10-15 in hexadecimal!).



They're all 10, just different ways of writing them.

Hope that helped...
smokingun
2006-06-02 10:24:10 UTC
Computers are very simple... they only understand "yes" and "no."



Binary is a logical way to express yes and no using voltages, which electronics can detect very easily. To put it simply, a logic 0 (no) is 0 volts, and a logic 1 (yes) is a non-zero voltage that depends on the system, typically it is 5 volts.



When you string together a bunch of zeros and ones, you get unique combinations that the computer can decode as an instruction. For example, if I told you beforehand that the letters "lksdfls" in that order means "stop," and the letters "sldfsld" mean "go," I can now issue you orders of stop and go using that code. Except in this case the commands are like "01010100010010111000101110001011" which is just a series of voltages to the computer and may be interpreted as a command.
T2Step
2006-06-02 10:21:17 UTC
The term binary code can mean several different things:



There are a variety of different methods of coding numbers or symbols into strings of bits, including fixed-length binary numbers, prefix codes such as Huffman codes, and other coding techniques including arithmetic coding. made in china

binary and text files on computers are represented as binary codes

and characters within text files can be represented by any of a number of character code systems, including ASCII, EBCDIC and Unicode.

This is a disambiguation page: a list of articles associated with the same title. If an internal link referred you to this page, you may wish to change the link to point directly to the intended article.

In the binary system, each digit position represents a value of 2 binary numbering system, which consists of just two unique numbers, 0 and 1.
BonesofaTeacher
2006-06-02 10:20:52 UTC
It's just like our normal thing of base 10.

We can count up to 9 then there are no more numbers

so we have to go to two digits, the tens place and

the ones place.



in base 2 (binary) they can only count up to 1 then

there is no "2" so you have to go right to 10. So the next number would be 11 (equal to 3). Computers have to use this language because they only understand on and off.

like whether there is a voltage or not. that's all they can tell. they don't have anything like a '2'. So everything has to be reduced to binary code. On or off.
smohs
2006-06-02 10:24:32 UTC
The binary number system (aka base 2) represents values using two symbols, typically 0 and 1. Computers call these bits. A bit is either off (0) or on (1).



Each position is a power of 2

For expample:



BIN DEC

0000 = 0

0001 = 1

0010 = 2

0011 = 3

0100 = 4

0101 = 5

0110 = 6

0111 = 7

1000 = 8
asaaiki
2006-06-02 10:26:25 UTC
Binary code is made of 1's and 0's, which is a binary represntation. when you type and exe file in DOS or (or open it in notepad) you see it represented in hex format - the same numbers, but in base 16. Each statement/command in this binary code(or machine language) is also a statement in a language called assembly language.



The information in computers is stored in binary format because the hardware (memory, CPU, and all the rest) is built to distinguish between two states - No voltage(which is 0) and voltage(1).
2006-06-02 10:21:09 UTC
Binary code is data being stored in a form where there are two digits, 1 and 0. It is much like an on/off switch. 1 is on, 0 is off. With many lines of code, it forms commands and instructions that programs follow to do functions. If there is a 1 in a certain spot, it may signify that a certain pixel on your screen should be lit up.
?
2016-03-27 07:05:32 UTC
BCD is simply binary where the bits are split into blocks of 4. For each block the valid values are between 0 and 9, anything over 9 is invalid. e.g. 25 = 0010 0101 in BCD Binary values of 1010 or higher are invalid BCD makes for easy conversion to and from decimal so it has uses in simple input and output situations but it's very wasteful in terms of hardware (only 10 of the 16 possible values are used for each block) and it's overly complex to build things that work internally in BCD unless you have a very good reason to do so. Hex is base 16. Decimal is base 10 and has 10 valid values (0 to 9), the next digit to the left is then multiplied by 10 e.g. 25 = 2 * 10 + 5 Hex is exactly the same but with 16 possible values (0 to 9 and then A to F). (A = 10, B = 11 etc...) e.g. 25 (in hex) = 2*16 + 5 = 37 (in decimal) 19 (in hex) = 1*16 + 9 = 25 (in decimal) 1A (in hex) = 1*16 + 10 = 26 (in decimal) Hex is used in computing because 4 bits of binary gives 16 possible values making conversion from hex to binary and back very easy with a little practice. Computers work in binary but humans don't, it's all too easy to make a mistake or miscount when you have a string of 32 0's or 1's. Hex is used as a compromise, it's a lot easier for humans to use than binary but almost as easy for the computer to cope with. It also makes it far clearer how much difference there is in binary between 2 numbers. e.g. in decimal 64 and 96 don't seem to have much in common but in hex they are 40 and 60, making it far clearer that in binary they are very similar. The normal convention is for hex numbers to be written starting with 0x to make it clear it's in hex e.g. binary, hex, BCD, decimal 0000 = 0x0 = 0000 = 0 0001 = 0x1 = 0001 = 1 ... 1000 = 0x8 = 1000 = 8 1001 = 0x9 = 1001 = 9 1010 = 0xa = 0001 0000 = 10 1011 = 0xb = 0001 0001 = 11 1100 = 0xc = 0001 0010 = 12 1101 = 0xd = 0001 0011 = 13 1110 = 0xe = 0001 0100 = 14 1111 = 0xf = 0001 0101 = 15 Octal is much the same as hex only base 8 rather than 16. Each octal digit maps to 3 binary bits rather than 4. This has the plus that you only need to use normal numbers rather than resorting to letters, for some reason using letters confuses some people. Why do this? In the real world I've never used octal. I've only used BCD once or twice, I've used base 36 more. Binary and hex on the other hand I use all the time. Computers work on bytes, blocks of 8 bits. In decimal that gives a range of 0 to 255, in octal it's 0 to 377 and in hex it's 0 to FF. If I see a number like 175426 I have no idea how many bits or bytes that will take. If I see the same number in octal (526502) I still have no idea off hand how many bytes that is since 1 bytes takes 2 and 2/3's digits. I also couldn't easily tell you what the second byte of the binary representation was without decoding most of the digits. But in hex it's 2AF42, it'll take 3 bytes to store (0000 0010, 1010 1111, 0100 0010). More importantly with a bit of practice I can convert that hex number into binary in my head faster than I could get my calculator to do the same task and just as easily convert just part of it if I only need a subsection.
2006-06-02 10:23:35 UTC
simple explanation- ever seen an odometer? the thing that tells you how many miles are on your car (or motorcyle, exercise bike, whatever).

think of one of those, with only a zero and a one for numbers.

the numbers add up like this:



0000= 0

0001= 1

0010= 2

0011= 3

0100= 4



and so on.

the fun part is how you stack them- each digit is a bit, four bits are a nybble, two nybbles are a byte.

In a computer that has an 8 bit bus, each word is a byte.

a 16 bit bus has two words, 32 bus four words, and 64 bit eight words- the power of a system increases dramatically based on the number of words it can handle, and on the speed at which they can be processed (frequency of the processor is the speed like 800 Mhz, 2.1 Mhz, etc.)
2006-06-02 10:19:17 UTC
The term binary code can mean several different things:



There are a variety of different methods of coding numbers or symbols into strings of bits, including fixed-length binary numbers, prefix codes such as Huffman codes, and other coding techniques including arithmetic coding. made in china

binary and text files on computers are represented as binary codes

and characters within text files can be represented by any of a number of character code systems, including ASCII, EBCDIC and Unicode.
cat38skip
2006-06-02 10:22:25 UTC
Binary code is a method of counting using only zeros and ones.



you can represent any number in an array of 0's and 1's



0000 = 0

0001 = 1

0010 = 2

0011 = 3

0100 = 4

0101 = 5

0110 = 6

0111 = 7

1000 = 8

1001 = 9

1010 = 10



...
force_of_fury
2006-06-02 10:27:51 UTC
binary means 2....that means the base of your number system is 2...so you have to start with 0 and count it as first number and second number is 1...



if it is hexanumber then it is 16 the base...that means 0-15

octa will be 0-7...





now in this number system everything is reprsented by 1 and 0...

that means either it is present or not..



0-000

1-001

2-010

3-011

4-100

5-101

6-110

.

.

so on and so forth
cat rat
2006-06-02 10:19:44 UTC
1 and 0 thats on and off, binary means 2 numbers thats all it is.
I don't know
2006-06-02 10:18:56 UTC
Count with two fingers.

0, 1, 10, 11, 100, 101, 110... so on.
CherrySplendor
2006-06-02 10:20:08 UTC
They consist of 1's and 0's. Look at that link.
linuxfortravelers
2006-06-02 10:22:36 UTC
Check the links below from Wikipedia.
MPLS NEWBY
2006-06-02 10:20:08 UTC
Give this site a try: http://www.wikihow.com/Convert-from-Decimal-to-Binary
LiN
2006-06-03 03:42:50 UTC
Watch the other answers.







--- LeeeN
AXE
2006-06-02 10:21:02 UTC
10010111010101010110100001011001010 My computer just said hey.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...