Large numbers

Why does a 15 digit number display as typed and a 16 digit number changes the last digit to 0?

How to cure the problem not using text format.