[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53427] "format compact" gets reset whenever p
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #53427] "format compact" gets reset whenever precision format options are set |
Date: |
Thu, 22 Mar 2018 15:11:51 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48 |
URL:
<http://savannah.gnu.org/bugs/?53427>
Summary: "format compact" gets reset whenever precision
format options are set
Project: GNU Octave
Submitted by: philipnienhuis
Submitted on: Thu 22 Mar 2018 08:11:50 PM CET
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Philip Nienhuis
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
(This is a long standing bug, dating back to 3.6.4 o earlier)
format compact should be independent of other format settings relating to
e.g.,precision of output format.
I find that format compact is consistently reset whenever e.g., "format long"
or "format bank" is set.
IMO format compact or format loose settings shouldn't be rest by precision
format settings.
>> a.f = 2
a =
scalar structure containing the fields:
f = 2
>> a.g = 3
a =
scalar structure containing the fields:
f = 2
g = 3
>> a
a =
scalar structure containing the fields:
f = 2
g = 3
>> format compact
>> a
a =
scalar structure containing the fields:
f = 2
g = 3
>> format long
>> a
a =
scalar structure containing the fields:
f = 2
g = 3
Matlab does it right:
>> format compact
>> a.f = 2
a =
struct with fields:
f: 2
>> a.g = 3
a =
struct with fields:
f: 2
g: 3
>> a
a =
struct with fields:
f: 2
g: 3
>> format long
>> a
a =
struct with fields:
f: 2
g: 3
>> format loose
>> a
a =
struct with fields:
f: 2
g: 3
>>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53427>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53427] "format compact" gets reset whenever precision format options are set,
Philip Nienhuis <=