octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49168] Wrong results with logical AND


From: Simon
Subject: [Octave-bug-tracker] [bug #49168] Wrong results with logical AND
Date: Fri, 23 Sep 2016 15:55:13 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.8.0

URL:
  <http://savannah.gnu.org/bugs/?49168>

                 Summary: Wrong results with logical AND 
                 Project: GNU Octave
            Submitted by: simonz
            Submitted on: Fri 23 Sep 2016 03:55:11 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hi,

When I execute 

and(0x05,0x02)

Octave returns 1. I think it should be 0 since the bitwise AND:

0101 & 0010 = 0x0000

Regards,
Simon



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 23 Sep 2016 03:55:11 PM GMT  Name: xxx.png  Size: 49kB   By: simonz

<http://savannah.gnu.org/bugs/download.php?file_id=38592>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49168>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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