Discuss Scratch

purplebook163
Scratcher
500+ posts

*SOLVED* What does the O mod O block do?

What does the
((0) mod (0))
block do? When I did a quick Google search, the only thing that came up was mode, which is used in sets of data.

Last edited by purplebook163 (June 23, 2015 06:27:19)

Econinja
Scratcher
1000+ posts

*SOLVED* What does the O mod O block do?

purplebook163 wrote:

What does the
((0) mod (0))
block do? When I did a quick Google search, the only thing that came up was mode, which is used in sets of data.

Exponents.

e.g. 7^2 = 49
due to that 7*7 is 49.
purplebook163
Scratcher
500+ posts

*SOLVED* What does the O mod O block do?

Econinja wrote:

purplebook163 wrote:

What does the
((0) mod (0))
block do? When I did a quick Google search, the only thing that came up was mode, which is used in sets of data.

Exponents.

e.g. 7^2 = 49
due to that 7*7 is 49.
Thanks!
deck26
Scratcher
1000+ posts

*SOLVED* What does the O mod O block do?

Sorry but that answer is completely wrong. Look up modulo or modulus online for info but it's essentially the remainder after division.

((49) mod (7))   //   =0
((36) mod (7)) // =1 7x5 + 1 = 36
Econinja
Scratcher
1000+ posts

*SOLVED* What does the O mod O block do?

deck26 wrote:

Sorry but that answer is completely wrong. Look up modulo or modulus online for info but it's essentially the remainder after division.

((49) mod (7))   //   =0
((36) mod (7)) // =1 7x5 + 1 = 36
Oops.
purplebook163
Scratcher
500+ posts

*SOLVED* What does the O mod O block do?

deck26 wrote:

Sorry but that answer is completely wrong. Look up modulo or modulus online for info but it's essentially the remainder after division.

((49) mod (7))   //   =0
((36) mod (7)) // =1 7x5 + 1 = 36
Wait. What is the answer then? It does square roots, right?
Econinja
Scratcher
1000+ posts

*SOLVED* What does the O mod O block do?

purplebook163 wrote:

deck26 wrote:

Sorry but that answer is completely wrong. Look up modulo or modulus online for info but it's essentially the remainder after division.

((49) mod (7))   //   =0
((36) mod (7)) // =1 7x5 + 1 = 36
Wait. What is the answer then? It does square roots, right?

Turn out his answer was correct. I got confused with
(()*(()*()))
or (you got confused with)
([sqrt v] of (9))
deck26
Scratcher
1000+ posts

*SOLVED* What does the O mod O block do?

There is an option in the maths block for square root
set [myvar v] to ([sqrt v] of (othervar))
purplebook163
Scratcher
500+ posts

*SOLVED* What does the O mod O block do?

Exponents, sorry. I always mix those too up. XD

Powered by DjangoBB