🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12482

Re: atof with 68881

#12482
From: bjornmu
Date: Tue, 02 May 1989 22:24
27 lines
972 bytes
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 = <expression> && sfs[0] + sfs[1] <= 1.0;

Had to be rewritten as:

  hit = <expression>;
  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
===========
Technical Details
Message-ID: <8905022224.AA17990@mime.unit.no>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!idt.unit.no!bjornmu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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