Explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Explain

I don't understand about what the modules operation do ? Could you explain it simply ?😁 Thanks 🔝

27th Aug 2020, 7:13 PM
Deleted Account
Deleted Account - avatar
10 Answers
+ 3
Modulus is the remainder after performing division. So 3 goes into 56, 18 times evenly. 3*18=54. So 56-54=2, this is where the 2 comes from, it is what is remaining afterwards.
27th Aug 2020, 8:17 PM
Steven M
Steven M - avatar
+ 3
The modulus operator is a way to determine the remainder of a division operation. Instead of returning the result of the division, the modulo operation returns the whole number remainder. ... That remainder is what the modulo operation returns.
28th Aug 2020, 4:54 AM
Priya Sharma :)
Priya Sharma :) - avatar
+ 2
Can you explain a little more? What language? What are we talking about?
27th Aug 2020, 7:17 PM
Steven M
Steven M - avatar
+ 2
Do you have some reference to it??
27th Aug 2020, 8:07 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
In JavaScript there is an example : 56%3=2 Could you explain this ? Thanks for attention .
27th Aug 2020, 8:11 PM
Deleted Account
Deleted Account - avatar
+ 2
Wow , now I can understand about modules operation. Thanks brother for spending your time . 💯
27th Aug 2020, 8:23 PM
Deleted Account
Deleted Account - avatar
+ 1
You mean modulus operator, it returns the remainder of a number Like 5%2 will return remainder as 1
27th Aug 2020, 7:21 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
I am taking about modules operation in Web programming Language
27th Aug 2020, 8:06 PM
Deleted Account
Deleted Account - avatar
+ 1
No
27th Aug 2020, 8:08 PM
Deleted Account
Deleted Account - avatar
27th Aug 2020, 8:12 PM
Steven M
Steven M - avatar