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 som
Integer.MIN_VALUE
Integer.MAX_VALUE
You may use 'inf' like this:
import math bool_true = 0 < math.inf bool_false = 0 < -math.inf
Refer: math — Mathematical functions