Re: Fw: BCD-lib
- Posted by euman at bellsouth.net
Apr 13, 2002
Consider this integer Chris,
7863 = 0111-1000-0110-0011 -- BCD
7863 = 10110111 -- BYTE
7863 = 1111010110111 -- Dword / word
in BCD the largest decimal that can be displayed
by any four digits is 9 and the four bits are the
binary equivalent of 1 thru 9.
I'll be happy to see how it will all work out.
Will it be fast and efficient?.
Euman
euman at bellsouth.net
----- Original Message -----
From: "Chris Bensler" <bensler at mail.com>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, April 13, 2002 7:40 PM
Subject: RE: Fw: BCD-lib
>
> How can you represent decimals with only 4 bits? That would be a maximum
> number of 16, not even considering fractions.
>
> 4 bytes makes more sense.
>
> >From what I understand, the purpose of the BCD lib would be for accurate
> math, not speed or size.
>
>
> Chris
>
>
> euman at bellsouth.net wrote:
> > From: "Euman" <euman at bellsouth.net>
> >
> > > My understanding from Electronics and its been a long time 10+ years
> > > since I
> > > went to school but BCD is a four (4) byte representation of each decimal
> > > digit.
> > > If this is the case, then how would it be usefull other than require
> > > massive amounts
> > > of Ram to store even the smallest string???
> >
> > Excuse me, four (4) bit "NOT BYTE" as I said. So yes I could see this as
> > usefull
> > and my earlier post should be shot down.
> >
> > Euman
> >
> >
>
>
>
|
Not Categorized, Please Help
|
|