In JavaScript, how do I get:
(在JavaScript中,我如何获得:)
(给定整数进入另一个整数的整数倍?)
(剩下的?)
For some number y and some divisor x compute the quotient ( quotient ) and remainder ( remainder ) as:
y
x
quotient
remainder
(对于某些数字y和一些除数x将商( quotient )和余数( remainder )计算为:)
var quotient = Math.floor(y/x); var remainder = y % x;
1.4m articles
1.4m replys
5 comments
57.0k users