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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4ac6504560f5ef27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-28 03:27:09 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!pd95f65d7.dip.t-dialin.NET!not-for-mail From: "Joachim Schr�er" Newsgroups: comp.lang.ada Subject: Re: Little Endian -> Big Endian (Ada95 / GNAT), Whats with floating point types? Date: Sat, 28 Feb 2004 12:27:06 +0100 Message-ID: References: NNTP-Posting-Host: pd95f65d7.dip.t-dialin.net (217.95.101.215) Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1077967627 55276452 I 217.95.101.215 ([76083]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:5917 Date: 2004-02-28T12:27:06+01:00 List-Id: A short question: It's not so simple with floating point types, just swapping bytes, or is it? One has to swap all the bits or? Interfaces.IEEE_Float_32 has 1 bit sign, 23 bit mantissa and 8 bit exponent, Interfaces.IEEE_Float_64 has 1 bit sign, 52 bit mantissa and 11 bit exponent when I remember correctly. Achim