|
From: | Charles Karney |
Subject: | [Octave-bug-tracker] [bug #45587] rem(-0, 1) returns 0 instead of -0 |
Date: | Tue, 21 Jul 2015 17:18:42 +0000 |
User-agent: | Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0 |
Follow-up Comment #2, bug #45587 (project octave): I'm using MATLAB Version: 8.4.0.150421 (R2014b). Note that MATLAB displays -0 as 0. So I use atan2d to test for the sign: >> atan2d(rem(-0,1),-1) ans = -180 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45587> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |