Skip to main content
Version: Java (Groovy)

containsNonFinite

containsNonFinite returns a boolean value indicating whether or not the specified value is non-normal, where normal is defined as not null, not infinite, and not NaN.

Syntax

containsNonFinite(values...)

Parameters

ParameterTypeDescription
valuesbyte...

The value to check.

valuesdouble...

The value to check.

valuesfloat...

The value to check.

valuesint...

The value to check.

valueslong...

The value to check.

valuesshort...

The value to check.

valuesByte[]

The value to check.

valuesDouble[]

The value to check.

valuesFloat[]

The value to check.

valuesInteger[]

The value to check.

valuesLong[]

The value to check.

valuesShort[]

The value to check.

Returns

true if the value parameter is not normal; false otherwise.

Examples

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

source = newTable(
doubleCol("AllNulls", NULL_DOUBLE, NULL_DOUBLE),
doubleCol("AllNonNulls", 0.0, 0.1),
doubleCol("SomeNulls", 0.0, NULL_DOUBLE)
)

result = source.update(
"AllNullsResult = containsNonFinite(AllNulls_)",
"AllNonNullsResult = containsNonFinite(AllNonNulls_)",
"SomeNullsResult = containsNonFinite(SomeNulls_)"
)