print(int( 342342342342342342 / 10 ))
The output is
34234234234234236
I do not understand where the 6 comes from! I also tried "long" which gives an error.
print(int( 342342342342342342 / 10 ))
The output is
34234234234234236
I do not understand where the 6 comes from! I also tried "long" which gives an error.
You might be better using the integer division // operator.
print( 342342342342342342 // 10 )
As others have commented, floating points in python have some interesting results.
The common example of this is:
int(2.5)
Returns
2