HP Forums
Problem with ->HMS - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Problem with ->HMS (/thread-2014.html)



Problem with ->HMS - Helge Gabert - 08-25-2014 04:21 PM

There appears to be a problem with ->HMS in Home, if the argument is between -1 and 0, e.g.,

->HMS(-0.1) returns 0 degrees 06 minutes 0 seconds,

same as ->HMS(0.1).

Even entering -0 degrees 6 minutes on the command line returns the positive value of 0 degrees 6 minutes.

However, HMS->(-0 degrees 6 minutes 0 seconds) returns -0.1, so that is fine.

Thanks for looking into that!


RE: Problem with ->HMS - Tim Wessman - 08-25-2014 07:19 PM

Note that is purely a display thing. Calculations are just fine.


RE: Problem with ->HMS - Helge Gabert - 08-25-2014 08:24 PM

True, it is a display thing (for the most part!), but annoying nevertheless, because you don't know if your result is positive or negative without some subsequent testing.