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

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

[Octave-bug-tracker] [bug #36121] num2str(2.4e9, 15) gives incorrect res


From: Rik
Subject: [Octave-bug-tracker] [bug #36121] num2str(2.4e9, 15) gives incorrect result
Date: Mon, 09 Apr 2012 02:58:52 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

Update of bug #36121 (project octave):

                  Status:             In Progress => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #4:

Fixed in this changeset
(http://hg.savannah.gnu.org/hgweb/octave/rev/34c932e669c8).  To access the fix
you will need to build from Mercurial sources or wait until the 3.8.0
release.

For an immediate fix, use the 'l' modifier to sprintf.


sprintf ("%ld", 2.4e9)
ans = 2400000000




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36121>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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