isIdentical

Is the binary representation of x identical to y?

@trusted pure nothrow @nogc
bool
isIdentical
(
real x
,
real y
)

Examples

assert( isIdentical(0.0, 0.0));
assert( isIdentical(1.0, 1.0));
assert( isIdentical(real.infinity, real.infinity));
assert( isIdentical(-real.infinity, -real.infinity));

assert(!isIdentical(0.0, -0.0));
assert(!isIdentical(real.nan, -real.nan));
assert(!isIdentical(real.infinity, -real.infinity));

Meta