2/27/2023 0 Comments How to use operator mods![]() ![]() A twelve-hour clock has a fixed set of values, from 1 to 12. All arithmetic operations performed on this number line will wrap around when they reach a certain number called the modulus.Ī classic example of modulo in modular arithmetic is the twelve-hour clock. ![]() ![]() Modular arithmetic deals with integer arithmetic on a circular number line that has a fixed set of numbers. The term modulo comes from a branch of mathematics called modular arithmetic. Free Bonus: Click here to get a Python Cheat Sheet and learn the basics of Python 3, like working with data types, dictionaries, lists, and Python functions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |