comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: precise floats
Date: 1998/08/07
Date: 1998-08-07T00:00:00+00:00	[thread overview]
Message-ID: <dewar.902545384@merv> (raw)
In-Reply-To: m3u33plo6x.fsf@mheaney.ni.net

Matthew said

<<Actually, it's not necessary anyway.  The compiler will reject the
declaration

   type Fail_If_Not_Precise_Enough is digits N;

if it can't give you at least N digits.
>>


The whole idea of requesting the precision you need at this level of
detail (number of decimal digits) is to me a bit bogus. It sounds good
if you are not doing serious numerical analysis, but in real life the
idea that you sit down with your program, figure out you need 12 digits,
then ask for it, and hope to get it, is very rarely the case.

Indeed there are quite a few algorithms where even if you could do this
kind of analysis, it would not work, because these algorithms fail if
you have too much precision. In general extra unwanted precision can
be quite an enemy to efficient floating-point code.

Especially in these days where virtually all machines use IEEE float formats,
even if they (increasingly, GRRR) don't provide 100% full IEEE arithmetic
semantics, the whole business about taking a high level abstract view of
precision requirements is dubious.





  reply	other threads:[~1998-08-07  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-06  0:00 precise floats Robert Dewar
1998-08-06  0:00 ` Corey Ashford
1998-08-06  0:00 ` Samuel Mize
1998-08-07  0:00   ` Matthew Heaney
1998-08-07  0:00     ` Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-08-04  0:00 Bob Fletcher
1998-08-04  0:00 ` Corey Ashford
1998-08-04  0:00   ` Corey Ashford
1998-08-05  0:00     ` Frank Klemm
1998-08-06  0:00       ` Robert Dewar
1998-08-06  0:00         ` dennison
1998-08-07  0:00           ` Robert Dewar
1998-08-07  0:00           ` paul.english
1998-08-08  0:00             ` Robert Dewar
1998-08-12  0:00               ` Kevin Radke
1998-08-25  0:00               ` Gene Ouye
1998-08-10  0:00             ` dennison
1998-08-07  0:00         ` Tom Weis
1998-08-07  0:00           ` Robert Dewar
1998-08-04  0:00 ` David C. Hoos, Sr.
1998-08-05  0:00   ` Bob Fletcher
1998-08-04  0:00 ` Christopher Green
1998-08-05  0:00 ` Matthew Heaney
1998-08-09  0:00 ` Bob Fletcher
replies disabled

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