MGMT 1040 Lecture Notes - Lecture 14: Binary Number
MGMT 1040 Lecture 14 Notes – Multiple Storage Locations
Introduction
• Used together, these four locations can accept 232, or 4,294,967,296 different values.
• The use of multiple storage locations to store a single binary number may increase the
difficulty of calculation and manipulation of these numbers
• The calculation may have to be done one part at a time, possibly with carries or borrows
between the parts, but the additional difficulty is not unreasonable.
• Most modern computers provide built-in instructions that perform data calculations 32
bits or 64 bits at a time, storing the data automatically in consecutive bytes.
• For other number ranges, and for computers without this capability, these calculations
can be performed using software procedures within the computer.
• An alternative approach known as binary-coded decimal (BCD), may be used in some
applications.
• In this approach, the number is stored as a digit-by-digit binary representation of the
original decimal integer.
• Each decimal digit is individually converted to binary.
• This requires 4 bits per digit.
• Thus, an 8-bit storage location could hold two binary-coded decimal digits
• In other words, one of one hundred different values from 00 to 99.
• For example, the decimal value 68 would be represented in BCD as 01101000.
• Of course you remember that 01102 = 610 and 10002 = 810.
• Four bits can hold sixteen different values, numbered 0 to F in hexadecimal notation
• With BCD the values A to F are simply not used.
• The hexadecimal and decimal values for 0 through 9 are equivalent.
• The table compares the decimal range of values that can be stored in binary and BCD
forms.
find more resources at oneclass.com
find more resources at oneclass.com