isInfinity

bool
isInfinity
(
real x
)

Examples

static assert(!isInfinity(real.init));
static assert(!isInfinity(-real.init));
static assert(!isInfinity(real.nan));
static assert(!isInfinity(-real.nan));
static assert(isInfinity(real.infinity));
static assert(isInfinity(-real.infinity));
static assert(isInfinity(-1.0L / 0.0L));
static assert(!isInfinity(real(0)));

Meta