Berserk Docs
Scalar FunctionsMath Functions

isinf

Returns whether the input is an infinite value (positive or negative infinity).

Syntax

isinf(x)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print isinf(1.0 / 0.0)
print_0 (bool)
true

On this page