DoxigAlpha

isNegativeInf

Returns whether x is an infinity with a negative 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 isNegativeInf(x: anytype) bool {
    return x == -math.inf(@TypeOf(x));
}