[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62565] fixed_point_format displays differentl
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #62565] fixed_point_format displays differently in Octave than Matlab |
Date: |
Thu, 2 Jun 2022 11:32:29 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62565>
Summary: fixed_point_format displays differently in Octave
than Matlab
Project: GNU Octave
Submitter: rik5
Submitted: Thu 02 Jun 2022 08:32:27 AM PDT
Category: Interpreter
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 02 Jun 2022 08:32:27 AM PDT By: Rik <rik5>
In Octave, fixed point format often switches to scientific notation which
creates weird alignments.
Sample code:
fixed_point_format (true)
y = [1.1e1; 1.234e3; 1.2345e5; 1.23456e7]
y =
11
1234
1.234e+05
1.235e+07
If enough significant digits are require then Octave eventually switches to
fixed point format
y(3) = 1.234567e5
y =
1.0e+07 *
0.0000
0.0001
0.0123
1.2346
Meanwhile, for the first example Matlab produces
11
1234
123450
12345600
and it also switches to fixed point format when y(3) is modified.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62565>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #62565] fixed_point_format displays differently in Octave than Matlab,
Rik <=