what do you get with 1 divide by 998001, interesting results
Dan Stromberg
drsalists at gmail.com
Thu Aug 21 18:15:32 EDT 2014
Amusing.
It works in hexadecimal too:
numerator = 1
denominator = 0xffe001
shift = int(16 ** 30)
print(hex(int(numerator * shift / denominator)))
More information about the Python-list
mailing list