isInfinity

bool
isInfinity
(
real x
)

Examples

1 static assert(!isInfinity(real.init));
2 static assert(!isInfinity(-real.init));
3 static assert(!isInfinity(real.nan));
4 static assert(!isInfinity(-real.nan));
5 static assert(isInfinity(real.infinity));
6 static assert(isInfinity(-real.infinity));
7 static assert(isInfinity(-1.0L / 0.0L));
8 static assert(!isInfinity(real(0)));

Meta