Re: Gentler Decimal Floating-Point
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Mar 2007 16:08:43 -0800
Nick Maclaren wrote:
In article <1175079126.776658.6270@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Quadibloc" <jsavard@xxxxxxxxx> writes:
(snip)
|> > Would you like to define what the logical bit operations (and, even more
|> > so, shifts) mean for an all-decimal computer?
|> No such operations exist.(snip)
Ah. So what would people do if they had requirements that necessitated
the use of bit arrays, complete with shifting?
The Fortran standard seems to allow it. K&R C allowed decimal, but ANSI
removed it. Fortran allows the implementation to specify the number of
available bits for bit operations, which may be less than that available
for numeric operations. Specifically, BIT_SIZE() for bitwise operators,
and RADIX() and DIGITS() for numerical values, either INTEGER or REAL.
There are a few possibilities, some require more work to perform bitwise operations than others.
-- glen
.
- References:
- Gentler Decimal Floating-Point
- From: Quadibloc
- Re: Gentler Decimal Floating-Point
- From: glen herrmannsfeldt
- Re: Gentler Decimal Floating-Point
- From: Nick Maclaren
- Re: Gentler Decimal Floating-Point
- From: Mike Cowlishaw
- Re: Gentler Decimal Floating-Point
- From: Quadibloc
- Re: Gentler Decimal Floating-Point
- From: Mike Cowlishaw
- Re: Gentler Decimal Floating-Point
- From: Quadibloc
- Re: Gentler Decimal Floating-Point
- From: Nick Maclaren
- Re: Gentler Decimal Floating-Point
- From: Quadibloc
- Re: Gentler Decimal Floating-Point
- From: Nick Maclaren
- Re: Gentler Decimal Floating-Point
- From: Nick Maclaren
- Gentler Decimal Floating-Point
- Prev by Date: Re: Gentler Decimal Floating-Point
- Next by Date: Re: Gentler Decimal Floating-Point
- Previous by thread: Re: Gentler Decimal Floating-Point
- Next by thread: Re: Gentler Decimal Floating-Point
- Index(es):