Discuss Scratch

JamesOuO
Scratcher
500+ posts

Don't know where certain math equations are?

I am looking for a math thing used in JavaScript used like this: 10 % 4 = 2 because 2 is the even remainder. Where's the block for that?

Last edited by JamesOuO (Jan. 3, 2014 04:09:37)


turkey3_test
Scratcher
1000+ posts

Don't know where certain math equations are?

(() mod ())
Is the block you need! Same as % in JavaScript.

JamesOuO
Scratcher
500+ posts

Don't know where certain math equations are?

turkey3_test wrote:

(() mod ())
Is the block you need! Same as % in JavaScript.
Thanks!

PhirripSyrrip
Scratcher
500+ posts

Don't know where certain math equations are?

JamesOuO wrote:

I am looking for a math thing used in JavaScript used like this: 10 % 4 = 1 because 1 is the even remainder. Where's the block for that?
Sorry for butting in, but doesn't 10 % 4 = 2 ???

Last edited by PhirripSyrrip (Jan. 2, 2014 23:09:23)


; ; ; ; ; ; ; ;You thought I'd get away from you, didn't you?!
JamesOuO
Scratcher
500+ posts

Don't know where certain math equations are?

PhirripSyrrip wrote:

JamesOuO wrote:

I am looking for a math thing used in JavaScript used like this: 10 % 4 = 1 because 1 is the even remainder. Where's the block for that?
Sorry for butting in, but doesn't 10 % 4 = 2 ???
Wow, I feel like a n idiot. xD thanks, I'll fix that.

Powered by DjangoBB