A community for students. Sign up today!
Here's the question you clicked on:
 0 viewing
sailenroute
 2 years ago
What does '%' do?
sailenroute
 2 years ago
What does '%' do?

This Question is Open

A.Avinash_Goutham
 2 years ago
Best ResponseYou've already chosen the best response.2gives the remainder 5%2=1 4%2=0

sailenroute
 2 years ago
Best ResponseYou've already chosen the best response.0oh, thanks alot man

time_to_learn
 2 years ago
Best ResponseYou've already chosen the best response.1It is called the modulo operator. Given two positive numbers, a (the dividend) and n (the divisor), a modulo n (abbreviated as a mod n) is the remainder of the Euclidean division of a by n. For instance, the expression "5 mod 2" would evaluate to 1 because 5 divided by 2 leaves a quotient of 2 and a remainder of 1, while "9 mod 3" would evaluate to 0 because the division of 9 by 3 has a quotient of 3 and leaves a remainder of 0; there is nothing to subtract from 9 after multiplying 3 times 3. (Notice that doing the division with a calculator won't show you the result referred to here by this operation, the quotient will be expressed as a decimal fraction.) Source: http://en.wikipedia.org/wiki/Modulo_operation

Krishnadas
 2 years ago
Best ResponseYou've already chosen the best response.0this id the modulus operator..This gives remainder..not to be confused with '/'.
Ask your own question
Ask a QuestionFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.