Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Entering position between 0 and 1 degree W gives false position. #99 #284

Open
rgleason opened this issue Aug 23, 2022 · 0 comments
Open

Comments

@rgleason
Copy link
Contributor

@trudK45 wrote:

If you try to enter a position of say 30 minutes W by entering -0 degrees 30 minutes you will end up with a position of 30 minutes east. It's obvious that -0 is interpreted as 0 and the minus sign is not transferred to the minutes part.

Looking at the code I think this also applies for 0 -1 degrees south.
You simply need to detect the entered minus sign on the degrees to decide if the minutes are to be negated or not if the value of the degrees is zero.

See his code details at rgleason#99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant