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-Thread: 103376,2aaba1527862ef22 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!aioe.org!not-for-mail From: Cesar Rabak Newsgroups: comp.lang.ada Subject: Re: Reading Float Data from a binary file into ada Date: Tue, 30 Jan 2007 19:14:26 -0200 Organization: Aioe.org NNTP Server Message-ID: References: <1170172307.292500.256090@m58g2000cwm.googlegroups.com> <45bf9b8b$0$22527$39db0f71@news.song.fi> NNTP-Posting-Host: EsI5OqmiI//kShIW+CXIWw.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org In-Reply-To: User-Agent: Thunderbird 1.5.0.8 (X11/20061109) Xref: g2news2.google.com comp.lang.ada:8746 Date: 2007-01-30T19:14:26-02:00 List-Id: Niklas Holsti escreveu: [snipped] > > The portability of this approach is the same as for the C code: it > depends on the byte order in the VB file, the order in which you > concatenate the 4 octets into a 32-bit value, and the representation of > Float values. But if it works in C, it should work in Ada, assuming that > the Ada Float type has the same representation as the C float type, > which is likely. > 0.01999: since there are not VB implementations on machines other than Intel, I think once the 'right' endianness is found it will survive all implementations in Ada, right?