What is the modulus operator?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the modulus operator?
Rating:
The modulus operator is a binary arithmetic operator that returns the remainder of the division operation. It can be used with both floating-point values and integer values. The use of the modulus operator is shown as follows:
where, opL is the left operand and opR is the right operand. This expression is equivalent to the expression
Rating:
Was this information helpful?
Other articles
- What is the <jsp:useBean> standard action?
- What is a tag directive?
- What is the getServletContext() method of the ServletConfig interface?
- What is a member class?
- What is serialization?