0 votes
1 view
in Python by (47.8k points)

I am looking for minimum and maximum values for integers in python. For eg., in Java, we have Integer.MIN_VALUE and Integer.MAX_VALUE. Is there something like this in python?

1 Answer

0 votes
by (107k points)

If you are using Python 3, then you no need to worry about the range of int value because the int type is unbounded in Python 3.

If you want to know the machine's word size then you can use sys.maxsize.

Related questions

0 votes
1 answer
asked Jul 2, 2019 in Python by ParasSharma1 (13.5k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...