Organizational Research By

Surprising Reserch Topic

Integer division in JavaScript



asked May 19, 2015 in JAVASCRIPT by rajesh
0 votes
31 views



Related Hot Questions

2 Answers

0 votes
var div = Math.floor(y/x);
var rem = y % x;
answered May 19, 2015 by rajesh
0 votes
var div = Math.trunc(y/x);
var rem = y % x;
answered May 19, 2015 by rajesh

...