DoxigAlpha

isPositiveInf

Returns whether x is an infinity with a positive sign.

Function parameters

Parameters

#
x:anytype

Returns whether x is an infinity, ignoring sign.

Functions

#
isInf
Returns whether x is an infinity, ignoring sign.
isPositiveInf
Returns whether x is an infinity with a positive sign.
isNegativeInf
Returns whether x is an infinity with a negative sign.

Source

Implementation

#
pub inline fn isPositiveInf(x: anytype) bool {
    return x == math.inf(@TypeOf(x));
}