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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7fd5a5da28dace78 X-Google-Attributes: gid103376,public From: matthew_heaney@acm.org (Matthew Heaney) Subject: Re: Renaming Fixed Point Mutiplicative operator in Ada 95 Date: 1998/05/21 Message-ID: #1/1 X-Deja-AN: 355408509 Content-Transfer-Encoding: 8bit References: <3561F32B.2F0B@innotts.co.uk> <01bd84c3$47215d60$440029a1@m00rq900> <3564A1ED.3DAC@gecm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Organization: Network Intensive Newsgroups: comp.lang.ada Date: 1998-05-21T00:00:00+00:00 List-Id: In article <3564A1ED.3DAC@gecm.com>, Simon Pilgrim wrote: (start of quote) It is not sufficient to just check for equality to zero with fixed point types. If z is small enough then a divide by zero exception will still be generated by some targets (Intel 486 & Motorola 68k for example). (end of quote) Are you taking about a floating point divide or a fixed point divide? They are very different! I'm confused by your answer, because a fixed point divide returns universal fixed. How does one get a divide by zero exception, since 1) we've proven z is in fact not zero, and 2) the universal fixed result has infinate range? If you consider that the smallest non-zero value, T'Small, is represented internally by the value 1, then how does a divide by zero exception occur?