bugGNU Octave - Bugs: bug #36133, num2str displays more than 16...


bug #36133: num2str displays more than 16 significant digits for large integer inputs

Submitted by:  Rik <rik5>
Submitted on:  Mon Apr 9 03:08:33 2012  
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Nov 21 13:05:33 2016, comment #3:

Matlab R2014b:

(The second 1 in the first result is real.)

Hartmut <hardy>
Sun Nov 20 15:17:53 2016, comment #2:

For comparison, could someone try the following in Matlab?

Rik <rik5>
Project Administrator
Sat Nov 19 21:24:37 2016, comment #1:

This is still present in Octave 4.2.0.

Hartmut <hardy>
Mon Apr 9 03:08:33 2012, original submission:

Example code:

This should be '1' with 25 zeros after it.

Matlab correctly masks large integer inputs to just 16 significant digits.

For something really wacky try

Rik <rik5>
Project Administrator


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by rik5 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Jan 19 22:32:42 2014mtmillerCategoryNone=>Octave Function
      Operating SystemGNU/Linux=>Any

    Back to the top

    Powered by Savane 3.1-cleanup1