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: Simon Pilgrim Subject: Re: Renaming Fixed Point Mutiplicative operator in Ada 95 Date: 1998/05/21 Message-ID: <3564A1ED.3DAC@gecm.com>#1/1 X-Deja-AN: 355364280 Content-Transfer-Encoding: 7bit References: <3561F32B.2F0B@innotts.co.uk> <01bd84c3$47215d60$440029a1@m00rq900> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: GEC Marconi Avionics Newsgroups: comp.lang.ada Date: 1998-05-21T00:00:00+00:00 List-Id: Robert Dewar wrote: << Incidentally, in a critical system, I would jolly well hope that EITHER a) you prove that division by zero cannot happen or b) you test for it explicitly if z = 0 then .... else a := y /z; end if; >> 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). Regards, Simon Pilgrim