www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/30/21:22:43

Date: Tue, 30 May 1995 16:11:39 -0700 (PDT)
From: "Kent D. Lottis" <kentl AT bdc DOT cirrus DOT com>
To: Larry Estep <ljeste01 AT msuacad DOT morehead-st DOT edu>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Math/rounding errors?

On Tue, 30 May 1995, Larry Estep wrote:

> 
> 
>     I have a piece of code that implements the gamma function.  It works
> fine with Borland C, as well as with the C compiler on the HP Unix machine
> I use at work.  But when compiled under djgpp, I seem to be getting some
> sort of rounding error.
>     For instance, passing 5.0 to the function should result in a value
> of 120.0.  Instead I get 118.401 from the djgpp version.  This is just
> not acceptable.

You're not running this on a Pentium, by any chance, are you  ;-)




= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
=  Kent D. Lottis                 kentl AT bdc DOT cirrus DOT com    =
=  Cirrus Logic, Inc., Bellevue Design Center             =
=                                                         =
=  Located in Washington state, home of exploding         =
=  mountains, sinking bridges, the Mariners, uncountable  =
=  tons of spent nuclear fuel, and Bill Gates.            =
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019