is_infinity¶
- is_infinity(value: Any) bool¶
Check whether the value is positive infinity.
In contrast to
math.isinf(), values of exact types such asRationalare never converted tofloatand are therefore never infinite.- Parameters:
value – Value, e.g.,
float,Rationalorstormpy.results.BoundedValue(checks its value).- Returns:
True iff the value is positive infinity.