When I try to calculate the summation of numbers between 1 to N number with python I tried this code
N = int(input())
S = int(N*(N+1)/2)
print(S)
It works well until i tried to input N=641009859 the expected result should be= 205446819988104870 but the result is= 205446819988104864
What is the wrong in here?