aspose file tools
The moose likes Beginning Java and the fly likes what is Binary number Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "what is Binary number " Watch "what is Binary number " New topic
Author

what is Binary number

Shabbir Tharia
Greenhorn

Joined: Aug 19, 2001
Posts: 5
Sir,
I does not understand binary numbers, Please Explain me with example.
Thanks
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

Here are a some tutorial pages, take a look at these and see if they help. http://www.temple.edu/dentistry/di/curric/D105/compbas/binary.htm http://www.math.grin.edu/~rebelsky/Courses/152/97F/Readings/student-binary.html http://www.sportplanet.com/gp2/trackedit/howto/howto_hex.html
If you still have questions post back here.
Hint: computers only have two fingers to count on.


Please ignore post, I have no idea what I am talking about.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Exactly! When you think about binary representations of numbers, all you have is ones and zeroes:
0 = 0
1 = 1
10 = 2
11 = 3
100 = 4
101 = 5
and so on. It seems a little complicated at first, but do some reading and you will start to understand and appreciate computers a lot more!

------------------
Brian Hoff
Sun Certified Programmer for the Java� 2 Platform
Saima Kolachi
Greenhorn

Joined: Aug 27, 2001
Posts: 6
Shabbir
Binary means two. The number system we have for mathematics is built around the powers of 10 that is why it is called decimal system. For instance, the number 386 is more precisely written as:
3*10*10+ 8*10+6
Representing numbers this way is easy for us because we have ten fingers. But a computer only has two buttons, namely, On and off.
"On" is represented by 1 and "Off" is represented by 0. These are called binary numbers. In other words binary means two.
Let's take an example of how 5 will be represented in binary numbers. Each digit in a binary system is called a BIT. Below is the representation in eight bits (eight bits equal one byte. The memory size of a byte is from -128 to 127. That is why I have taken the numbers from 1 to 128) for the decimal number 5.
128 64 32 16 8 4 2 1
0 0 0 0 0 1 0 1
The number of occupied bits i.e. 4 and 1 add up to make 5 (101). In a similar fashion you can change other decimal numbers to binary numbers.
For further reading u may visit the "cat and mouse game with bit" in the campfire.
SK
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is Binary number
 
Similar Threads
Exporting AOL addressbook..
Ques. from JTips Mock 1
FTP Problem
WA #1.....word association
Invocation init()