Say I want to remove the last digit of a number n
.
For that I use the code int(n/10)
.
Sadly this gives the wrong result for large numbers.
For example n = 4474630975855204960
divided by 10
gives 447463097585520512
.
What's the reason for this behavior? How can I fix it?