0

Why does variable 'a = 123465789123456789' have a different value than variable 'b = int(123456789123456789.0)'?

1 Answers1

0

Because python’s float (like in any other language) have a limit in precision, and you’ve reached it. On contrary, python’s integer type is of arbitrary precision, meaning that you’ll never reach its limit.

TUI lover
  • 542
  • 4
  • 16