Syntax
- bool isinf(value)
- bool[] isinf(values)
Parameters
- value—float
- values—float[]
Returns
True if value is infinite, false otherwise.
For an array values a new array is returned containing the result of each element.
Related
Examples
isinf(1)
# result = falseisinf(1/0)
# result = trueisinf(ln(0))
# result = trueisinf([1, 1/0])
# result = [false, true]