mod()Returns the remainder of a division.Syntaxmod(a, b)DescriptionReturns the remainder of a divided by b (equivalent to % in other languages).ExampleLoading editor…▶ Try it yourselfExpected output3When to use?Even/odd, periodic calculations.Related commandsArithmetic ( + - * / ** )← Arithmetic ( + - * / ** )sqrt / abs →