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

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

[Octave-bug-tracker] [bug #33104] mat2str returns ugly result (different


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #33104] mat2str returns ugly result (different to Matlab)
Date: Sun, 17 Apr 2011 16:24:49 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0) Gecko/20110327 Firefox/4.0 Iceweasel/4.0

Follow-up Comment #4, bug #33104 (project octave):

I'm not sure this was actually a bug at all. Choosing to display 15 or 16
digits is a matter of preference, and the actual precision of a double is in
fact closer to 16 decimal digits. This particular example the binary
representation happens to be closer to 0.7 than to 0.699999999999999, but it's
easy to come up with examples when the number displayed with sixteen digits is
closer to the actual representation than the one displayed with 15, e.g. 0.69

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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