Unpacking decimal
Unpacking decimalWith, numerical valueComputerAt one of the technique which is expressed at on,BCDIt is defined in the base.Zoned decimal numberAlso it calls, butPack decimalWith appearance, the pack "is not, it is thought as the thing which reaches the point where it is called" "unpacking" in the sense that.
1 column of decimal, is expressed with to the numerical bit of zone bit and 4 columns of 4 columns separately, but as for the last beam of numerical value it is not the zone bit and to judge correct several negative several the sign binary digit in order can allot. Furthermore, as for zone bit,EBCDICSo 15,JIS codeSo the sign binary digit, 12, 13 has been allotted 3, to negative number in correct number.
Table of contents |
Zone bit
The zone bit is the cord/code which displays the fact that the data is numerical value. When simultaneously, displaying numerical value with letter, there is a cord/code and compatibility. Therefore, because the cord/code differs depending upon the character code which can handle the computer which has been used compatibility is low.
Structure
Below, +789 when it expresses with EBCDIC as example, structure of unpacking decimal is shown.
| 1111 | 0111 | 1111 | 1000 | 1100 | 1001 |
| Zone bit | Numerical bit | Zone bit | Numerical bit | Sign binary digit | Numerical bit |
Example
| +1234 is expressed at unpacking decimal | |
|---|---|
| EBCDIC | 1111 0001 1111 0010 1111 0011 1100 0100 |
| JIS code | 0011 0001 0011 0010 0011 0011 1100 0100 |
| -1234 is expressed at unpacking decimal | |
| EBCDIC | 1111 0001 1111 0010 1111 0011 1101 0100 |
| JIS code | 0011 0001 0011 0010 0011 0011 1101 0100 |
Related item
- Binary-coded decimal
- Pack decimal
