bugGNU Octave - Bugs: bug #62565, fixed_point_format displays...

 
 

bug #62565: fixed_point_format displays differently in Octave than Matlab

Submitter:  Rik <rik5>
Submitted:  Thu 02 Jun 2022 03:32:27 PM UTC
 
Category:  Interpreter Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Thu 02 Jun 2022 03:32:27 PM UTC, original submission:  

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.

Rik <rik5>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9