help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Negative zeros?


From: David Bateman
Subject: Re: Negative zeros?
Date: Tue, 13 Sep 2005 06:05:53 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Vic Norton a écrit :

Look at the following code
   octave> CS = [ 0 0 0 ]
   CS =

     0  0  0

   octave> CS *= -1
   CS =

     -0  -0  -0

I find this a real annoyance. To paraphrase Gertrude Stein:
   A zero is a zero is a zero.
Is there some easy way to stop Octave from outputting negative zeros?

Regards,

Vic

Vic,

Maybe you should do a google search for the article "Much ado about zeros sign bit" and read about the importance of having two representations of zero.

Regards
David



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]