isFinite

Determines whether the given value is a finite number.

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

Parameters

x T

The value to check

Return Value

Type: bool

true if x is a finite, valid number, false otherwise.

Meta