Modulus Function: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 August 2024

  • curprev 01:3001:30, 17 August 2024Filmote talk contribs 1,202 bytes +7 No edit summary
  • curprev 01:2901:29, 17 August 2024Filmote talk contribs 1,195 bytes +1,195 Created page with "A modulus (modulo, mod) is simply the remainder when dividing one number by another. When we divide 7 by 2 the result is 3 with 1 remainder. In C / C++ the operand <code>%</code> returns the modulus between two numbers, for example: <pre> Serial.println(7 % 2); >> Outputs ‘1’. </pre> One ‘gotcha’ with the modulus operation is that it returns the modulus using the same sign as the dividend. The sign of the divisor is irrelevant. The examples below..." Tag: Visual edit: Switched