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

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

[Octave-bug-tracker] [bug #51178] publish() sometimes removes last eleme


From: Rik
Subject: [Octave-bug-tracker] [bug #51178] publish() sometimes removes last element from vector after section break
Date: Tue, 6 Jun 2017 14:15:49 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0

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

Checking with the wikipedia article on the IEEE-754 standard
(https://en.wikipedia.org/wiki/Double-precision_floating-point_format), I find
that precision is 15-17 decimal digits.  If Octave wants to *guarantee*
lossless save/restore of values in text format it needs to be keeping 17
digits.  See the quote below.


This gives 15–17 significant decimal digits precision. If a decimal string
with at most 15 significant digits is converted to IEEE 754 double precision
representation and then converted back to a string with the same number of
significant digits, then the final string should match the original. If an
IEEE 754 double precision is converted to a decimal string with at least 17
significant digits and then converted back to double, then the final number
must match the original.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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