I know that it returns the remainder but what happens when say :

x% y,

where x,y is int and x<y. I see that results in x;

For example, 3% 101232 = 3 and similarly 3%y, where y is

greater than 3 yields 3. Why is that>

Just wonder the details of what goes on.