Analysis of information sources in references of the Wikipedia article "Modulo" in English language version.
X modulo Y, i.e., X-Y*INT(X/Y).
The remainder function, i.e., X-Y*IP(X/Y).
{{cite book}}
: CS1 maint: numeric names: authors list (link){{cite book}}
: CS1 maint: numeric names: authors list (link)If both operands are non-negative, then the remainder is non-negative. Results are undefined if one or both operands are negative.
The % operator is defined only in cases where either both sides are positive or both sides are negative. Unlike C, it also operates on floating-point data types, as well as integers.