发明名称 Binary to decimal coder/decoder
摘要 A system and method are provided for encoding from decimal to binary and back again. The coding is based on representing 3 decimal digits as 10 binary bits and is a development of the Chen-Ho algorithm. This provides a storage efficiency of >99%, yet still allows decimal arithmetic to be readily performed. The decimal input is typically first converted to binary coded decimal (4 bits per decimal digit), before compression to 10 bits. Adopting the encoding of the present invention, if the leading (most significant) decimal digit is zero, then the first three bits of the binary output are zero; and if the first two decimal digits are zero, then the first six bits of the binary output are zero. Accordingly, the same coding can be flexibly used to code a decimal digit is binary bits and 1 decimal digit is 4 binary bits. This makes it particularly suitable for standard computer architectures which are based on a power of two (16-bit, 32-bit, 64-bit, etc), and therefore not directly divisible by 7 or by 10.
申请公布号 US6525679(B1) 申请公布日期 2003.02.25
申请号 US20020152282 申请日期 2002.05.20
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 COWLISHAW MICHAEL FREDERIC
分类号 G06F5/00;H03M7/12;(IPC1-7):H03M7/04 主分类号 G06F5/00
代理机构 代理人
主权项
地址