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

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

[Octave-bug-tracker] [bug #49559] Implementation of containers.Map


From: Rik
Subject: [Octave-bug-tracker] [bug #49559] Implementation of containers.Map
Date: Fri, 2 Dec 2016 17:00:14 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #49559 (project octave):

                  Status:         Patch Submitted => In Progress            

    _______________________________________________________

Follow-up Comment #4:

Okay.  I'll try to look at this on the weekend.  I think I can get by using a
struct everywhere by converting numeric keys to strings with


sprintf ("%.16g", key)


For something short, like 2.1, the string will be "2.1".  For something like
pi, the string would be "3.141592653589793".  Since IEEE double only carries
16 digits of precision the keys will be unique even if I don't store them in
numeric format.  And it makes the underlying implementation easier since I can
use the same code for both cases.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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