MemotivaNumbers and arithmetic

What is the difference between int and float?

Numbers and arithmetic

Audio flashcard · 0:15

Nortren·

What is the difference between int and float?

0:15

An int is an integer of arbitrary precision, limited only by available memory. A float is a double-precision floating point number following the IEEE 754 standard, the same as a C double. Floats have limited precision and can produce small rounding errors in arithmetic.
docs.python.org