isInfinity

Determines whether the given value is an infinite number.

@safe @nogc nothrow pure @trusted @nogc nothrow pure
bool
isInfinity
(
T
)
(
T x
)
if (
__traits(isFloating, T)
)

Parameters

x T

The value to check

Return Value

Type: bool

true if x is an infinite floating point number, false otherwise.

Meta