//Integer division
function Div(exp1, exp2)
{
var n1 = Math.round(exp1); // Rounding
var n2 = Math.round(exp2); // Rounding
var rslt = n1 / n2; // Divide
if (rslt >= 0)
{
rslt = Math.floor(rslt); //The return value is the maximum integer value less than or equal to its numeric parameter.
}
else
{
rslt = Math.ceil(rslt); //The return value is the smallest integer greater than or equal to its numeric parameter.
}
return rslt;
}