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

division mit integers in python #4

Open
adrianoesch opened this issue May 18, 2017 · 1 comment
Open

division mit integers in python #4

adrianoesch opened this issue May 18, 2017 · 1 comment

Comments

@adrianoesch
Copy link

division in python sollte mit floats passieren (http://stackoverflow.com/questions/21316968/division-in-python-2-7-and-3-3)

deswegen:

# Convert CH y/x to WGS lat
def CHtoWGSlat(self, y, x):
    # Axiliary values (% Bern)
    y_aux = (y - 600000) / float(1000000)

danke für die scripts!

@MarcelWaldvogel
Copy link

Python 2 ist unterdessen nicht mehr unterstützt; und mit Python 3 hat sich das erledigt. (#7 macht den Code Python-3-kompatibel und vereinfacht die Berechnungen)

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

2 participants