Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!unisoft!mtxinu!ed From: ed@mtxinu.UUCP Newsgroups: comp.unix.wizards,comp.lang.c Subject: Re: Incorrect subtraction in C program Message-ID: <442@mtxinu.UUCP> Date: Thu, 4-Jun-87 13:08:14 EDT Article-I.D.: mtxinu.442 Posted: Thu Jun 4 13:08:14 1987 Date-Received: Sat, 6-Jun-87 11:44:04 EDT References: <1573@uwmacc.UUCP> <6879@mimsy.UUCP> Reply-To: ed@mtxinu.UUCP (Ed Gould) Organization: mt Xinu, Berkeley Lines: 20 Keywords: vax, C, 4.3BSD Xref: utgpu comp.unix.wizards:2384 comp.lang.c:2246 >>The problem is that when I subtract a tiny number from 1, > >There is a bug in the emulation code in /sys/vax/emulate.s. Try > > main(){printf("%.0f\n", 0.9);exit(0);} > >I have not seen a fix on comp.bugs.4bsd.ucb-fixes. I posted fixes for that problem to this group some months ago. mt Xinu customers - including educational institutions - with maintenance contracts also received a Maintenance Release with the correct code in the past several weeks. I don't have the diffs handy right now; if anyone needs them and can't get them either from an archive or from our product release, send me *mail* and I'll dig them out again. -- Ed Gould mt Xinu, 2560 Ninth St., Berkeley, CA 94710 USA {ucbvax,decvax}!mtxinu!ed +1 415 644 0146 "A man of quality is not threatened by a woman of equality."