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

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

[Octave-bug-tracker] [bug #55919] Format short|long g does not align num


From: Rik
Subject: [Octave-bug-tracker] [bug #55919] Format short|long g does not align numbers within matrices
Date: Thu, 14 Mar 2019 11:50:56 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #55919 (project octave):

                Category:                    None => Interpreter            
              Item Group:                    None => Regression             
                  Status:                    None => Confirmed              
        Operating System:       Microsoft Windows => Any                    
                 Summary: Format does not align space within matrices =>
Format short|long g does not align numbers within matrices

    _______________________________________________________

Follow-up Comment #1:

Confirmed.  This is a regression from version 4.2.1 where this worked.  I've
changed the Operating System to Any since this also affects Linux and
presumably Mac as well.

A more repeatable example that does not rely on random numbers is


x = pi (3,3);
x(2,2) = 1.5;
format short g
x
x =

  3.1416  3.1416  3.1416
  3.1416  1.5  3.1416
  3.1416  3.1416  3.1416


The only format that is affected is the 'g' format (short or long) because
this format does not print unecessary digits.

The same example run on version 4.2.1 produced


x =

      3.1416      3.1416      3.1416
      3.1416         1.5      3.1416
      3.1416      3.1416      3.1416


The decimal point is not aligned, but at least the columns are.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55919>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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