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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2aaba1527862ef22 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Return-Path: X-Virus-Scanned: amavisd-new at drc.ion.ucl.ac.uk From: Ali Bendriss Organization: The Dementia Research Centre To: comp.lang.ada@ada-france.org Subject: Re: Reading Float Data from a binary file into ada Date: Thu, 1 Feb 2007 16:28:49 +0000 User-Agent: KMail/1.9.4 References: <1170172307.292500.256090@m58g2000cwm.googlegroups.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-UCL-MailScanner-Information: Please contact the UCL Helpdesk, helpdesk@ucl.ac.uk for more information X-UCL-MailScanner: Found to be clean X-UCL-MailScanner-From: ali.bendriss@drc.ion.ucl.ac.uk X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 NNTP-Posting-Date: 01 Feb 2007 17:30:02 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1170347402 news-4.free.fr 2170 88.191.14.223:46412 X-Complaints-To: abuse@proxad.net Path: g2news2.google.com!news4.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news.in2p3.fr!in2p3.fr!feed.ac-versailles.fr!exabot.com!proxad.net!cleanfeed3-b.proxad.net!nnrp13-1.free.fr!not-for-mail Xref: g2news2.google.com comp.lang.ada:8820 Date: 2007-02-01T17:30:02+01:00 On Tuesday 30 January 2007 16:55, Jean-Pierre Rosen wrote: > frikk a =E9crit : > > Hello everyone! I am having a problem that I would love some help > > with. > > > > Essentially I was given a Visual Basic program that dumps a binary > > configuration file with all of the variables in a set. The variables > > are each 32 bit floats, with the first 16 bits being the integer part > > and the second 16 bits being a representation of the fraction (I'm not > > sure if this is stanard - but its just how VB dumps the data). > > Hmm... This looks like a fixed point representation, not a floating > point one. > > [...] Hello, I was not aware that VB has some fixed point built-in.=20 (... In fact I never use the fixed point at all). I was thinking that it's mostly a facility offered by Ada. I undersand that it could be usefull for the monetary conversion for exampl= e=20 but is it an important feature for a language to offer a built-in fixed poi= nt=20 representation ? does a library can offer the same level of facility ? Thanks. =2D-=20 Ali=20