This function determines whether the provided value is a positive or negative infinity.
This function does not generate a change.
is_inf(value)
Argument | Type | Description |
---|---|---|
value | any (required) | The value to be tested. |
Returns true
if the given value is a positive or negative infinity, else it returns false
.
This code shows some return values for is_inf():
[
is_inf( -inf ),
is_inf( inf ),
is_inf( 0 ),
is_inf( nan ),
];
Return value in JSON format
[
true,
true,
false,
false
]