Source code

Revision control

Copy as Markdown

Other Tools

function negZeroMinusNegZero()
{
var x = -0.0;
var y = -0.0;
return +(x - y);
}
assertEq(1 / negZeroMinusNegZero(), Infinity);
assertEq(1 / negZeroMinusNegZero(), Infinity);