on-internet
← Community

Why floor division and normal division don't output same result in case of large integers

Stack Overflow ·

my code is : a=99999999999999995 b=long(a/5) c=a//5 print(b,c) output is : 2e+16 19999999999999999 why different answer and how to get the same answer (in python3)

Comments

Sign in or sign up to comment and upvote.

No comments yet.