Received: (from major@localhost)
	by minnie.cs.adfa.oz.au (8.8.5/8.8.5) id IAA00880
	for pups-liszt; Tue, 7 Apr 1998 08:04:43 +1000 (EST)
X-Authentication-Warning: minnie.cs.adfa.oz.au: major set sender to owner-pups@minnie.cs.adfa.oz.au using -f
Received: from moe.2bsd.com (0@MOE.2BSD.COM [206.139.202.200])
	by minnie.cs.adfa.oz.au (8.8.5/8.8.5) with ESMTP id IAA00875
	for <pups@minnie.cs.adfa.oz.au>; Tue, 7 Apr 1998 08:04:36 +1000 (EST)
Received: (from sms@localhost)
	by moe.2bsd.com (8.8.5/8.8.5) id PAA28357;
	Mon, 6 Apr 1998 15:03:34 -0700 (PDT)
Date: Mon, 6 Apr 1998 15:03:34 -0700 (PDT)
From: "Steven M. Schultz" <sms@moe.2bsd.com>
Message-Id: <199804062203.PAA28357@moe.2bsd.com>
To: Bob.Supnik@digital.com
Subject: modf
Cc: pups@minnie.cs.adfa.oz.au
Sender: owner-pups@minnie.cs.adfa.oz.au
Precedence: bulk

Bob -

> Change the indicated code line to be:
> 
> ==>	FPS = setfcc (FPS, modfrac.h, newV);
> 
> and recompile.
> 
> Thanks to Warren Toomey for getting me the source to FACTOR, which
> showed the bug.

	The 'primes' program also uses 'modf' so it might encounter the same
	problem as FACTOR.

> (I can't believe this is the problem with vi, but who knows?  A bug in
> MODf could affect the binary to decimal conversion routines in the runtime

	'modf' is used in the runtime routines which compute 'long' (and
	unsigned long) remainders.  So if 'vi' is doing something like 
	"long % X" or "unsigned long % X" it's possible (likely) that it's 
	getting a wrong answer and becoming extremely confused.

	I'll check this later tonight.

	Steven


