+ 2

max number

in pascal there is the concept of the maximum possible number - this is maxint. in python how does this number look and how to call it?

7th Jun 2020, 7:15 AM
shiryaeva
shiryaeva - avatar
2 Réponses
+ 4
math module has a constant "inf", would it fill your needs?
7th Jun 2020, 8:13 AM
Seb TheS
Seb TheS - avatar
+ 4
Python's ints don't overflow, they grow forever, so there is no need for maxint.
7th Jun 2020, 7:24 AM
HonFu
HonFu - avatar