We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code is in cprNL function is
cprNL
if lat == 87 or lat == -87: return 2
Considering that latitude is a float obtained using IEEE-754 standard, IMHO, it is highly unlikely we will hit -87/87 exactly (https://docs.python.org/3/tutorial/floatingpoint.html). Should math.isclose be used here (https://docs.python.org/3/library/math.html#math.isclose)?
math.isclose
The text was updated successfully, but these errors were encountered:
You are absolutely right! Now fixed with commit ed18352.
Sorry, something went wrong.
No branches or pull requests
The code is in
cprNL
function isConsidering that latitude is a float obtained using IEEE-754 standard, IMHO, it is highly unlikely we will hit -87/87 exactly (https://docs.python.org/3/tutorial/floatingpoint.html). Should
math.isclose
be used here (https://docs.python.org/3/library/math.html#math.isclose)?The text was updated successfully, but these errors were encountered: