I am encountering the following issue with python 3
erg = (545-1023)/25971
erg = -1
in the link below is a screenshot.
I don't encounter this problem if I run my code on a different machine.
I am encountering the following issue with python 3
erg = (545-1023)/25971
erg = -1
in the link below is a screenshot.
I don't encounter this problem if I run my code on a different machine.
Are you sure you're on Python 3 when you get -1? That was the old behavior from Python 2. Try this:
from __future__ import (print_function, division)
erg = (545-1023)/25971
print(erg) # -0.018405144199299218
import platform
print(platform.python_version()) # what's here? Python 2.x? Or 3.x?