Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The modulo operation is just the reminder of the division. In your example divide 88² / 187 (dont do decimals)and ignore the result but take only the remainder. 7744/187=41 remainder 77. So 88² mod 187 = 77.
In this case the modulo always returns a number between 0 and 187-1.
For example 13 mod 3 = 1 because 13/3 = 4 with remainder 1.
The modulo operator in C is the %.
I hope that I didnt confuse you. Do you need a clearer explanation?
Take care because posts just for thanking, are not allowed on the rules (somebody could complain)
If it helped just click the "helped me" button.
I may add that C=M mod n always returns C between 0 and n-1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.