Re: compilation problem with module function interface definition
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 02:44:58 -0700
James Giles wrote:
glen herrmannsfeldt wrote:
(snip)
Maybe in a few years decimal floating point will get popular, and this problem will go away. That is, 1.23 will be exactly 1.23, single or double precision. There are people working on an efficient float decimal system.
But then what will be the rule for mixed mode between binary floating point and decimal floating point? Not that it's a bad idea, but it's something that will have to be addressed.
fixed/float conversion can be pretty slow on many systems now.
The suggested format is fairly easy to convert, but most likely there will be hardware assist for the conversion. Note that x87 includes conversions between fixed decimal and its internal floating point format, even from the 8087 days. It can't be so hard to do.
Storing three digits in 10 bits, with additional BCD digits when the number of digits is not a multiple of three is only slightly less efficient than pure binary. For a given range, fewer exponent bits are needed, which pretty much makes up for the lost bits due to decimal normalization.
-- glen
.
- Follow-Ups:
- Re: compilation problem with module function interface definition
- From: James Giles
- Re: compilation problem with module function interface definition
- References:
- compilation problem with module function interface definition
- From: Phony Account
- Re: compilation problem with module function interface definition
- From: Richard E Maine
- Re: compilation problem with module function interface definition
- From: Phony Account
- Re: compilation problem with module function interface definition
- From: Richard E Maine
- Re: compilation problem with module function interface definition
- From: glen herrmannsfeldt
- Re: compilation problem with module function interface definition
- From: James Giles
- Re: compilation problem with module function interface definition
- From: glen herrmannsfeldt
- Re: compilation problem with module function interface definition
- From: James Giles
- compilation problem with module function interface definition
- Prev by Date: Re: Type casting of integer to character in fortran
- Next by Date: Re: Type casting of integer to character in fortran
- Previous by thread: Re: compilation problem with module function interface definition
- Next by thread: Re: compilation problem with module function interface definition
- Index(es):
Relevant Pages
|