top_left top_right
bottom_left
Next Event: Unknown | Forum Rules | QGL Website | Event Registration
openFolder AusForums.com
iconwatfolderLineopenFolder LANs
iconwatfolderLineopenFolder QGL
iconwatfolderLineopenFolder QGL Forum
Author
Topic: Mod function
iceclimber
Posts: 128
Location: Brisbane, Queensland
Afternoon,
On a standard calculator, how do you mod a number

IE 23 mod 7


system
--
scuzzy
Posts: 11365
Location: Brisbane, Queensland
http://www.google.com/search?q=23+mod+7

commedy "just f***ing google it" option?
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
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
system
--
Not a new post since your last visit.
New Post Since your last visit
Back To Forum
Advertise with Us | Privacy Policy | Contact Us
© Copyright 2001-2026 AusGamers Pty Ltd. ACN 093 772 242.
Hosted by Mammoth Networks - Australian VPS Hosting
Web development by Mammoth Media.