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

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

[Octave-bug-tracker] [bug #65291] [octave forge] (mapping) degrees2dms p


From: anonymous
Subject: [Octave-bug-tracker] [bug #65291] [octave forge] (mapping) degrees2dms produces incorrect results
Date: Tue, 13 Feb 2024 01:49:43 -0500 (EST)

Follow-up Comment #4, bug#65291 (group octave):

With the proposed fix from comment #2, degrees2dms(2 - eps()) returns [1, 60,
59.9999999999990905052982270717620849609375] for me, which is off by 1 minute
or so.

If a well-defined specification for this function can be developed, it might
be feasible for proposed implementations to be exhaustively tested on inputs
of class single.

Some of the current test cases seem strange.  For instance, the exact result
for degrees2dms(10 + 0.5 / 60) would be [10, 0,
29.9999999999982946974341757595539093017578125] which is exactly
representable, but a test requires it to return exactly [10, 0, 30].



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65291>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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