Computer Science, asked by arshalishba786, 2 months ago

which function returns to the remainder after dividing the num 1 by num2 ?​

Answers

Answered by vivekrayjo
0

Answer:

function modulo(num1, num2) { var div = num1/num2;

var remainder = div - Math.floor(div); // gives the decimal point value left out from the division

return Math.round(remainder * num2); // multiplies the remainder with num2 and gives a whole number value

}

Explanation:

Similar questions