which function returns to the remainder after dividing the num 1 by num2 ?
Answers
Answered by
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
Math,
2 months ago
Science,
4 months ago
Business Studies,
4 months ago
English,
11 months ago
Physics,
11 months ago