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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,757e0f5f4cdec675 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: IEEE float I/O in DEC Ada Date: 1999/05/28 Message-ID: <7imvvr$5jb$1@nnrp1.deja.com>#1/1 X-Deja-AN: 483229392 References: <374EB9A9.F226AEE7@Maths.UniNe.CH> X-Http-Proxy: 1.0 x39.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri May 28 20:57:32 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-28T00:00:00+00:00 List-Id: In article <374EB9A9.F226AEE7@Maths.UniNe.CH>, Gautier wrote: > Hi all. > > Since DEC Ada wants either > > pragma float_representation(vax_float); > > or > > pragma float_representation(ieee_float); > > for a whole "project" and a part of mine requires > the VAX representation, so I must use it. > > _But_ I wish to save results in IEEE format - > I can live with text format but the IEEE is > a bit more compact... > > DEC Ada doesn't seem to have special types or > conversions functions for both floats sorts. > > Anyway, are there conversion routines available ? > > NB: the version is : > "DEC Ada V3.2-8 with the Professional Development Option" > > TIA You can definitely handle both types within a single program and convert between them (we know this only too well since it was one of the relatively difficult requirements that the GNAT implementation had to meet in copying DEC Ada 83). Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.