answersLogoWhite

0

The modulo of two numbers is the remainder of dividing one number by the other. For instance, 14 modulo 4 is 2 because 14/4 is 3 remainder 2. Both the numbers and the remainder must be integers otherwise there would be no remainder. If we used floating point numbers, 14/4 would be 3.5 with no remainder. In other words, there's no reason to have a modulo operator for floating point values because the result would always be 0.

User Avatar

Wiki User

10y ago

What else can I help you with?