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

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

[Octave-bug-tracker] [bug #47607] Boolean values display with space like


From: anonymous
Subject: [Octave-bug-tracker] [bug #47607] Boolean values display with space like doubles, but should display like uint8
Date: Sat, 02 Apr 2016 17:45:15 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

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

                 Summary: Boolean values display with space like doubles, but
should display like uint8
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 02 Apr 2016 05:45:14 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

ID fa58fcb7c51d


>> format long g
>> format compact
>> adj = rand(5,5) >= 0.5;
>> adj
adj =
                     0                     1                     1            
        1                     0
                     0                     1                     1            
        0                     1
                     1                     1                     0            
        0                     0
                     0                     1                     1            
        1                     1
                     1                     0                     1            
        0                     1
>> uint8(adj)
ans =
  0  1  1  1  0
  0  1  1  0  1
  1  1  0  0  0
  0  1  1  1  1
  1  0  1  0  1
>> 


Boolean values are displayed with excessive space, even though int8 and int16
are displayed with proper space. Boolean types have been omitted in
libinterp/corefcn/pr-output.cc and are implicitly being treated as doubles?





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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