comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <warren@ve3wwg.tk>
Subject: Re: Little Endian -> Big Endian (Ada95 / GNAT), Whats with floating point types?
Date: Fri, 05 Mar 2004 12:53:16 -0500
Date: 2004-03-05T12:53:16-05:00	[thread overview]
Message-ID: <k732c.15811$JZ6.482722@news20.bellglobal.com> (raw)
In-Reply-To: <JR22c.15805$JZ6.481765@news20.bellglobal.com>

I'll follow up to my other post as well...

Warren W. Gay VE3WWG wrote:

> pburnand0-news@yahoo.com wrote:
>> Warren W. Gay VE3WWG wrote:
>>> Marius Amado Alves wrote:
>>>
>>>>> ... Also, there is a small performance penalty paid for
>>>>> shuffling bits around to achieve platform independence.
>>>>
>>>> But surely less than converting to an ASCII image and back. (I suspect
>>>> that, contrary to what has been indicated, the significant performance
>>>> loss in the ASCII solution is of time, not space.)
>>>>
>>>> But the ASCII solution is a nice, safe one if you don't have the 
>>>> time or
>>>> the will or the possibility to learn to use or just to use the
>>>> compiler's. Remember Ada has the wonderful 'Image and 'Value attributes
>>>> which take care of the conversion for you.
>>>
>>> I'm no floating point numeric expert, but by converting to
>>> a standard, say IEEE floating point format, you can still
>>> represent a machine dependant number with repeating decimal
>>> places in a IEEE floating point format (I assume).  Mind
>>> you, this depends heavily upon the differences between the
>>> two formats.
...
>> The floating point numbers are always rounded even in an FPU.  No 
>> software, no hardware can handle an infinite number of digits...
> 
> Of course. But my point was that some hardware does keep
> a bit (IIRC), that indicates that this is a repeating
> digit (binary/decimal).  The point of this is to reduce
> error.

According to :

   http://www.csit.fsu.edu/~burkardt/papers/ieee.html

there is no concept of a "repeating bit", as I vaguely
remembered it. In fact, its possible that 1 bit cannot do
this anyway, because you can have a group of digits
repeat (to represent this, requires more than 1 bit).

I can only guess that I recall some state information from
a FPU design somewhere.
-- 
Warren W. Gay VE3WWG
http://ve3wwg.tk




  reply	other threads:[~2004-03-05 17:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25  9:38 Little Endian -> Big Endian (Ada95 / GNAT) James Amor
2004-02-25 12:23 ` David C. Hoos
2004-02-26 15:43   ` James Amor
2004-02-26  5:59 ` Simon Wright
2004-02-27 20:38   ` Guillaume Foliard
2004-02-28 11:27   ` Little Endian -> Big Endian (Ada95 / GNAT), Whats with floating point types? Joachim Schr�er
2004-02-29 16:32     ` Simon Wright
2004-03-04  5:32     ` pburnand0-news
2004-03-04 11:55       ` Little Endian -> Big Endian (Ada95 / GNAT),Whats " David C. Hoos
2004-03-04 13:12         ` Little Endian -> Big Endian (Ada95 / GNAT), Whats " Marius Amado Alves
2004-03-04 17:51           ` Warren W. Gay VE3WWG
2004-03-04 18:34             ` Hyman Rosen
2004-03-05 17:40               ` Warren W. Gay VE3WWG
2004-03-05 17:50                 ` Warren W. Gay VE3WWG
2004-03-05 13:48             ` pburnand0-news
2004-03-05 17:34               ` Warren W. Gay VE3WWG
2004-03-05 17:53                 ` Warren W. Gay VE3WWG [this message]
2004-03-05 13:29           ` pburnand0-news
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox