HP Forums

Full Version: Problem with ->HMS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
Note that is purely a display thing. Calculations are just fine.
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.
Reference URL's