Binary-coded decimal

Binary coded decimal (BCD) is a numeral system used in computer memory. In BCD, numbers are represented as decimal digits, and each digit is represented by four bits:

Digit Bits      Digit Bits
  0   0000        5   0101
  1   0001        6   0110
  2   0010        7   0111
  3   0011        8   1000
  4   0100        9   1001
To encode a number such as 127, then, one simply encodes each of the decimal digits as above, giving (0001, 0010, 0111).

Since most computers store data in eight-bit bytes, there are two common ways of storing four-bit BCD digits in those bytes: either one can simply ignore the extra four bits of each byte, usually filling them with zero bits or one bits (as in EBCDIC); or one can store two digits per byte, called "packed" BCD (packed BCD also usually ends with a sign digit, for which the preferred values are 1100 for + and 1101 for -). Thus the number 127 would be represented as (11110001, 11110010, 11110111) in EBCDIC or (00010010, 01111100) in packed BCD.

While BCD is wasteful (about 1/6 of the available memory is wasted, even in packed BCD), it has a direct correspondence to the ASCII character set if the BCD number is prepended or OR'd with 00110000 (decimal 48), and large numbers can easily be displayed on 7-element displays by splitting up the nybbles and sending each to a different character (the individual characters often have the wiring to display the correct figures). The BIOS in PCs usually keeps the date and time in BCD format, probably for historical reasons (it avoided the need for binary to ASCII conversion).



In the News

Researchers Discover New Tumor Defense System
Researchers have discovered that tumors release fatty acids that interfere with the cells that are trying to kill them. Consequently, strategies that reduce the amount of fatty acids surrounding the tumors may give a boost to anti-cancer therapeutics. The details of these findings appear in the September issue of the Journal of Lipid Research, an American Society for Biochemistry and Molecular Biology journal.

Commission on the Intelligence Capabilities of the United States Regar
This commission established in February 2004 "is charged with assessing whether the Intelligence Community is sufficiently authorized ... to identify and warn in a timely manner of, and to support United States Government efforts to respond to ... the proliferation of Weapons of Mass Destruction [WMD]."The site features a FAQ, the commission's report submitted to the president on March 31, 2005, and related material.

Epicurious: Etiquette Guide
"Learn how to avoid both humiliation and the dry cleaner"with these tips for eating foods such as artichokes, corn-on-the-cob, finger foods, shellfish, fondue, and pasta. Includes guidelines for using chopsticks, napkins, finger bowls, and utensils. From Epicurious.com

Researchers Find First Gene For Inherited Testicular Cancer In Mice
In this week's journal Nature, researchers report finding the first gene responsible for inherited susceptibility of testicular cancer in mice. The Ter mutation occurs in a gene called dead end, which is involved in normal testicular development and which may play a role in inherited forms of a testicular cancer occurring in infants.The mutation causes a huge increase in testicular cancer incidence, from 5 percent to 94 percent.

Exercise, Weight Control May Help Reduce Risk Of Breast Cancer, Meharr
Women who exercise more and keep their weight under control may dramatically reduce their odds of developing breast cancer, a population-based study by a team of investigators at Meharry Medical College and the Vanderbilt-Ingram Cancer Center suggests. The researchers, along with colleagues at the Shanghai Cancer Institute in China, report a strong link between "energy balance"and breast cancer risk in the June issue of Cancer Epidemiology, Biomarkers &Prevention, a journal of the American Association for Cancer Research (AACR).

Stroke Warning Signs Often Occur Hours Or Days Before Attack
Warning signs of an ischemic stroke may be evident as early as seven days before an attack and require urgent treatment to prevent serious damage to the brain, according to a study of stroke patients published in the March 8, 2005 issue of Neurology, the scientific journal of the American Academy of Neurology.

Los Angeles 'Big Squeeze' Continues, Straining Earthquake Faults
Northern metropolitan Los Angeles is being squeezed at a rate of five millimeters a year, straining an area between two earthquake faults that serve as geologic bookends north and south of the affected region. Scientists expect that the strain will ultimately be released in earthquakes much like the 1994 Northridge temblor. The study also suggests which faults might be most likely to rupture.

Local Harvest
Search or browse to find "all the farmers' markets, family farms, locally-grown produce, grass-fed meats, and other sources of sustainably grown food in your area."Iincludes farmers' markets, U-Pick farms, farm stands, meat/dairy/egg producers, and more. Listings include locations, contact information, and lists of available products by season.

Weight-loss And Exercise Study Compares Center- And Home-based Program
University of Central Florida study seeks to determine whether women who follow weight-loss and exercise programs at home fare as well as those who go to a center to work out and meet with counselors.

Highly strung
Infrared and NMR spectroscopy have possibly revealed one of the great secrets of the violin makers Stradivari and Guarneri del Gesu - they used chemical wood preservatives to help preserve their instruments and to improve the tonal quality. The discovery could help modern-day violin makers emulate more closely the properties of irreplaceable violins from the [...]


MP3 Music Downloads

Preview songs, Download Free Music,Burn CDs at ITunes.com
iTunes_RGB_9mm

 


Google




InformationQuickFind.com - Find Information Fast

Links