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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,772ddcb41cd06d5b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!24g2000hsh.googlegroups.com!not-for-mail From: christoph.grein@eurocopter.com Newsgroups: comp.lang.ada Subject: Re: How to check a Float for NaN Date: Fri, 9 May 2008 23:24:48 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5b277486-44c9-4929-9c75-231af65ed168@24g2000hsh.googlegroups.com> References: <3132e38d-18bb-4890-9cec-31056ac6e3ba@x19g2000prg.googlegroups.com> NNTP-Posting-Host: 87.174.238.189 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1210400688 19812 127.0.0.1 (10 May 2008 06:24:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 10 May 2008 06:24:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 24g2000hsh.googlegroups.com; posting-host=87.174.238.189; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:31 Date: 2008-05-09T23:24:48-07:00 List-Id: > T : Long_Long_Integer := Long_Long_Integer ( N ) ; Anon, this is nonsense. What you present is a type conversion Float to Long_Long_Integer, which will not work (it will round to the next nearest integer value or raise Constraint_Error if the float value is out of range). What is really needed and will work is an unchecked conversion (this will leave all bits unchanged).