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: mheaney@ni.net (Matthew Heaney) Subject: Re: Does Ada 95 conform to the IEEE 754 floating point standard? Date: 1998/02/04 Message-ID: #1/1 X-Deja-AN: 322198710 Content-Transfer-Encoding: 8bit References: <6b8fdn$qrh17@beaker.nit.gwu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Organization: Estormza Software Newsgroups: comp.lang.ada Date: 1998-02-04T00:00:00+00:00 List-Id: In article , gwinn@res.ray.com (Joe Gwinn) wrote: >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]. It might be better to use the types Interfaces.IEEE_Float_32 and Interfaces.IEEE_Float_64, because you have no guarantee that types Float and Long_Float are any different. If you want the IEEE format, then state that explicitly, by using the types in package Interfaces. See AARM B.2 (10.a).