[Home]Binary

HomePage | Recent Changes | Preferences

Showing revision 6

Astronomy

A stellar system that consists of two nearby stars that revolve against a common center of gravity.

See also [Binary stars]?, Optical binary.

Mathematics and Computer Science

Base two: a number representation consisting of zeroes and ones. It is used by practically all computers because of its ease of implementation using digital electronics and Boolean algebra.

As in all place-based number systems, the location of each digit is significant. The right most digit (or the first digit to the left of the decimal point if the number contains a decimal point) corresponds to the ones-place (20 = 1) and the value represented by that digit is simply the digit (1 or 0) multiplied by 1. The digit to the left of the one-place corresponds to the 21-place, so that digit represents (1 or 0) multiplied by 21. The next digit corresponds to 22 (= 4) and so on. Digits to the right of the decimal place correspond to 2-1, 2-2, ...

To obtain the Decimal equivalent of a binary number, simply multiply the various digits by their appropriate place-values and add the results together. For example:

101101001 = 1×28 + 0×27 + 1×26 + 1×25 + 0×24 + 1×23 + 0×22 + 0×21+ 1×20 = 256 + 64 + 32 + 8 + 1 = 361

101.011 = 1×22 + 0×21 + 1×20 + 0×2-1 + 1×2-2 + 1×2-3 = 4 + 1 + 0.25 + 0.125 = 5.375

To convert from an integer decimal number to its binary equivalent, divide the number by two and place the remainder in the ones-place. Divide the result by two and place the remainder in the next place to the left. Continue until the result is zero. For example:

OperationRemainderResult
118/2 = 5900
59/2 = 29110
29/2 = 141110
14/2 = 700110
7/2 = 3110110
3/2 = 11110110
1/2 = 011110110

giving a final result of 1110110.

See also Register, Decimal, Hexadecimal, Octal, Floating point.


HomePage | Recent Changes | Preferences
This page is read-only | View other revisions | View current revision
Edited November 10, 2001 5:21 pm by Uriyan (diff)
Search: