What Does "Mod" Mean?
(( <mod> ))
Last edited by N-Wear (2007-08-23 18:00:03)
Offline
Ive wodered that.
Offline
"mod" is short for modification. If I am modding something, I am taking an existing program and modifying it. That help?
Offline
Mod in scratch
Offline
Essentially the same thing. If someone downloads someone else's project, then modifies part of it, it is technically called a "Mod." It's basically any change you make to someone else's project in order to either make it better, or just different.
Offline
For positive numbers, mod is the same as the remainder. So since 7/2 is 3 with a remainder of 1, 7 mod 2 = 1...here is a much more in depth answer: http://en.wikipedia.org/wiki/Modulo_operation
Paulmedwal
Last edited by paulmedwal (2007-08-23 19:46:54)
Offline
wow...sorry...totally just realized what was happening
my bad
mod in scratch is a form of division in which you only get a whole number in return.
Example. 5 divided by 2 = 2.5, but 5 "MOD" 2 would simply equal 2.
I'm not positive if it's just division, but that's my experience with it. It cuts off the decimal to give whole numbers on any division.
sorry again, gotta make sure i read the first post in a forum before i go blabbing my head off...
Offline
oh, guess i was backwards...meh, i fell asleep the day we learned that one
Offline
I keep forgetting which comes first. Anyone have a memory trick?
eyra
Offline
What you just said was <round(
I just checked and mod is the remainder like 10 mod 3 is 1
Offline
Oops
I might not be right but if you turn scratch on and click "want help?" And click
help screens it tells you
Offline
The definition of mod as remainder when dividing is not quite complete and results in different implementations with different interpretations, particularly when applied to non-integer numbers. (Quick, what is pi mod -1.3?)
Here is a definition that works well for all real numbers (except x mod 0, which continues to make no sense), and is consistent with the limited definitions usually given for positive integers:
x mod y = x - y*floor(x/y)
where floor(a) means the largest integer <= a.
Note that for y >0, 0 <= x mod y < y
and for y<0 y< x mod y <=0
To get good limit properties for lim_{y->0) x mod y, we should define x mod 0 as 0.
Scratch treats x mod 0 as an error instead, which is an acceptable choice.
Offline
Thanks!!!!!!!!
Offline
MahoAshley wrote:
or mad can be short for moduale
and oops slight mistake i meant MOD not mad! (^v^)``
Offline
You can edit posts, you know...
Offline