Respuesta :
Answer:
It can only be performed on numeric values and its result is a numeric.
Explanation:
If a is an integer and n is a positive integer, we define a mod n to be the remainder when a is divided by n . The integer n is called the modulus and the operation is called Modulo operation. It is written as:
a mod n = a % n
The result of the above operation is always a numeric value.
The last option is correct because numeric value covers integer, float and double. The result of a modulo operation is numeric.
The last option is the generalization of the previous options.
Answer:
It can be performed on any numeric values, and the result is always numeric.
Explanation:
The mod operator (usually represented by %) is an arithmetic operator that is used to return the remainder when a number is divided by another number. These numbers can either be a double, an integer or a float. In other words, the mod operator will act on any numeric values and the result will be numeric.
For example;
(i) 5 % 2 = 1
i.e when 5 is divided by 2, the remainder is 1.
(ii) 5.2 % 3 = 2.2
i.e when 5.2 is divided by 3, the remainder is 2.2
Hope this helps!