octave-maintainers
[Top][All Lists]
Advanced

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

Re: signbit and logical tests


From: Michael D. Godfrey
Subject: Re: signbit and logical tests
Date: Sun, 10 Feb 2013 01:37:41 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 02/10/2013 12:48 AM, Daniel J Sebald wrote:
Just curious how that is coming about.
It is curious.  The code (in libinterp/corefcn/mappers.cc) seems to
read as it will return an integer which is what the C++ signbit function does.
However:
octave:1> sbit = signbit(-1.2)
sbit =  1
octave:2> whos
Variables in the current scope:

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  =====
        sbit        1x1                          8  double

So, I am missing something.

Michael



reply via email to

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