Skip to main content
Version: Python

isInf

isInf returns a boolean value indicating whether or not the specified value is infinite.

Syntax

isInf(value)

Parameters

ParameterTypeDescription
valuedouble

The value to check.

valuefloat

The value to check.

Returns

true if the value parameter is infinite; false otherwise.

Examples

The following example shows how isInf interacts with various objects within a table.

from deephaven import new_table
from deephaven.column import float_col, double_col


INF = float('inf')
NEG_INF = float('-inf')

source = new_table([
float_col("Floats", [0.0, 1.0, INF, NEG_INF]),
double_col("Doubles", [0.0, 1.0, INF, NEG_INF])
])

result = source.update(formulas=["FloatsInf = isInf(Floats)", "DoublesInf = isInf(Doubles)"])