httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: snprintf report
Date Mon, 13 Jan 1997 19:58:05 GMT
Isn't -0.0 in floating point significant?  -0.0/0 is -infinity not
+infinity. 

Dean

On Mon, 13 Jan 1997, sameer wrote:

> > 
> > Those aren't really an error.  If I say foo=-0, should the system keep the
> > '-' in there or should it think "you moron, there is only one 0"?  There
> > is no reason a system needs to have two representations for 0.  If there
> > is only one 0, the system can store a number between -32768 and 32767 in a
> > signed 16-bit integer; if there is a +0 and a -0, it can only do from
> > -32767 to 32767.  Integer implementation is in signed two's complement
> > (which implies only one 0) in every remotely popular system that I can
> > think of today, but floating point varies a bit more. 
> > 
> > Note that the mynegdouble is being printed by the vendor sprintf, so we
> > couldn't fix it even if we tried.  <g>
> 
> 	Aha.. cool.
> 
> > 
> > When I get Sameer's output from the Alpha stuff I'll see if I can figure
> > out what is going on there, although I don't have access to a 64-bit
> > machine for testing.
> > 
> 	I mailed it to you before I sent this out. You should have
> received them.. the two alphas are "catlow" and "kiwi".
> 
> -- 
> Sameer Parekh					Voice:   510-986-8770
> President					FAX:     510-986-8777
> C2Net 		    C2Net is having a party: http://www.c2.net/party/
> http://www.c2.net/				sameer@c2.net
> 


Mime
View raw message