isinf function

Syntax

  • bool isinf(value)
  • bool[] isinf(values)

Parameters

  1. valuefloat
  2. valuesfloat[]

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 = false
isinf(1/0)
# result = true
isinf(ln(0))
# result = true
isinf([1, 1/0])
# result = [false, true]

In this topic