Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This calculator does not have any modulo function. However there is quite simple way how to compute modulo using display mode <code>ab/c</code> (instead of traditional <code>d/c</code>).</p> <p>How to switch display mode to <code>ab/c</code>:</p> <ul> <li>Go to settings (<kbd>Shift</kbd> + <kbd>Mode</kbd>).</li> <li>Press arrow down (to view more settings).</li> <li>Select <code>ab/c</code> (number 1).</li> </ul> <p>Now do your calculation (in comp mode), like <code>50 / 3</code> and you will see <code>16 2/3</code>, thus, mod is <code>2</code>. Or try <code>54 / 7</code> which is <code>7 5/7</code> (mod is <code>5</code>). If you don't see any fraction then the mod is <code>0</code> like <code>50 / 5 = 10</code> (mod is <code>0</code>).</p> <p>The remainder fraction is shown in <strong>reduced form</strong>, so <code>60 / 8</code> will result in <code>7 1/2</code>. Remainder is <code>1/2</code> which is <code>4/8</code> so mod is <code>4</code>.</p> <p>EDIT: As @lawal correctly pointed out, this method is a little bit <strong>tricky for negative numbers</strong> because the sign of the result would be negative.</p> <p>For example <code>-121 / 26 = -4 17/26</code>, thus, mod is <code>-17</code> which is <code>+9</code> in mod 26. Alternatively you can add the modulo base to the computation for negative numbers: <code>-121 / 26 + 26 = 21 9/26</code> (mod is <code>9</code>).</p> <p>EDIT2: As @simpatico pointed out, this method will not work for numbers that are out of calculator's precision. If you want to compute say <code>200^5 mod 391</code> then some tricks from algebra are needed. For example, using rule <code>(A * B) mod C = ((A mod C) * B) mod C</code> we can write:</p> <p><code>200^5 mod 391 = (200^3 * 200^2) mod 391 = ((200^3 mod 391) * 200^2) mod 391 = 98</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload