I have a simple code, written to simplify fractions in python. Putting in certain numbers (Such as shown in the code) give huge, and possibly incorrect values. Below is the code.
from fractions import Fraction
print(Fraction(36/40))
And it outputs:
8106479329266893/9007199254740992
Why does it do this, and how can I fix this?