Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!idt.unit.no!bjornmu From: bjornmu@idt.unit.no Newsgroups: comp.sys.amiga.tech Subject: Re: atof with 68881 Message-ID: <8905022224.AA17990@mime.unit.no> Date: 2 May 89 22:24:34 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 27 I've also had problems with Lattice 5.02 and the -f8 option. A few examples (from DBW_Render): This code produced a Guru #3 ("Address Error"): hit = && sfs[0] + sfs[1] <= 1.0; Had to be rewritten as: hit = ; if (sfs[0] + sfs[1] > 1.0) hit = FALSE; This test always failed, even when count = 2.0 and maxcount = 0.0: if (count > maxcount) maxcount = count; But this worked fine: if (count > maxcount + 0.0) maxcount = count; These problems always seem to invlove comparison of floating point values. So be careful! Or wait for the next release..... :-} Bj|rn Munch ===========