|
![]() |
|
| Author |
|
|||||||
|
iceclimber
Posts: 128
Location: Brisbane, Queensland
|
Afternoon,
On a standard calculator, how do you mod a number IE 23 mod 7 |
|||||||
| #0 01:31pm 24/06/05 |
|
|||||||
|
system
|
--
|
|||||||
| #0 |
|
|||||||
|
scuzzy
Posts: 11365
Location: Brisbane, Queensland
|
||||||||
| #1 01:36pm 24/06/05 |
|
|||||||
|
ravn0s
Posts: 2774
Location: Brisbane, Queensland
|
thought there would be a mod button on the calculator
if not, jsut use the scientific calculator in windows last edited by ravn0s at 13:41:35 24/Jun/05 |
|||||||
| #2 01:41pm 24/06/05 |
|
|||||||
|
parabol
Posts: 1432
Location: Brisbane, Queensland
|
Yeah it's a bit of a bummer that most calculators don't have a modulo button.
I was sitting there in my cryptography exam the other day trying to do stuff like 361 (mod 36) by manually doing ANS-36 until a value <35 showed up. Pretty annoying when you have to perform it repeatedly. Alternately to do (a mod b), you can try (for most cases): x = floor(a / b); remainder = a - (x*b) That's just 2 steps to do even ridiculous modulos. Most TIs should have a mod function, but unfortunately, most of those calculators aren't allowed in exams :S last edited by parabol at 13:47:46 24/Jun/05 |
|||||||
| #3 01:47pm 24/06/05 |
|
|||||||
|
system
|
--
|
|||||||
| #3 |
|
|||||||
|
| ||||||||