From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b228c96663d3035 X-Google-Attributes: gid103376,public From: gwinn@res.ray.com (Joe Gwinn) Subject: Re: Does Ada 95 conform to the IEEE 754 floating point standard? Date: 1998/02/04 Message-ID: #1/1 X-Deja-AN: 322072402 Content-Transfer-Encoding: 7bit References: <6b8fdn$qrh17@beaker.nit.gwu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Raytheon Newsgroups: comp.lang.ada Date: 1998-02-04T00:00:00+00:00 List-Id: Ada95 allows one to use the arithmetic built into the processor one's program runs on. If that hardware complies to IEEE 754, so much the better, but Ada has nothing to do with it, and nor should it. IEEE 754 is a hardware representation, handled by the computer. To access these 32-bit single-real numbers, one must declare variables as type "float" in ANSI C or type "FLOAT" in Ada [LRM section 3.5.7]. To access 64-bit double-real numbers, one must declare variables as type "double" in C or type "LONG_FLOAT" in Ada [Ada LRM section 3.5.7]. In Fortran-77 [ANSI X3.9-1978, Section 4], these types are called "real" and "double precision" respectively. Note that it isn't enough to say only that a variable is a single (32-bit) float or a double (64-bit) float. There must be fifty different floating-point formats in existence, especially in legacy systems. IEEE 754 is steadily displacing all other formats, but it will be some time before all other formats have totally disappeared. Joe Gwinn In article <6b8fdn$qrh17@beaker.nit.gwu.edu>, sam818@seas.gwu.edu (Samir N. Muhammad) wrote: > Hello Everyone > > Does anyone know whether the Ada 95 standard say anything about the conformance > of Ada 95 to the IEEE 754 standard (i.e. floating point standard). I checked > some sections of the standard and could not find such information. Any pointers > (especially to the standard) are highly appreciated. > > > Thanks in advance > Samir Muhammad