Xref: utzoo comp.databases:5508 comp.lang.c:27744 comp.sys.ibm.pc.programmer:884 sci.math.num-analysis:726 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!rspangle From: rspangle@jarthur.Claremont.EDU (Randy Spangler) Newsgroups: comp.databases,comp.lang.c,comp.sys.ibm.pc.programmer,sci.math.num-analysis Subject: Re: BCD Encoding? Keywords: BCD, dbase Message-ID: <6063@jarthur.Claremont.EDU> Date: 10 Apr 90 23:52:06 GMT References: <2024@naucse.UUCP> <1990Apr10.193710.20246@uwasa.fi> Followup-To: comp.databases Organization: Harvey Mudd College, Claremont, CA 91711 Lines: 15 Microsoft Macro Assembler 5.2 manual gives the following: Packed BCD numbers are stored 2 digits to a byte, with one digit in the lower 4 bits and one in the upper 4 bits Unpacked BCD numbers are stored one digit to a byte, in the last 4 bits. The sign is in the leftmost bit (0 is +, 1 is -). -- -------------------------------------------------------------------------- | Randy Spangler | The less things change, the | | rspangle@jarthur.claremont.edu | more they remain the same | --------------------------------------------------------------------------