Source code
Revision control
Copy as Markdown
Other Tools
function adder(x, y) {
return Math.floor(x + y);
}
function foo(x) {
for (var i = 0; i < 100; i++) {
var a = adder(x, i);
}
return a;
}
var q = foo(0x7ffffff0 + .5);
assertEq(q, 2147483731);