Discuss Scratch

PenguinLover1123
Scratcher
1000+ posts

Blocks

Please, add these blocks:
[] is in numbers of []?::operators boolean //Reports if input a is in numbers of input b. example: [4] is in numbers of [2]? = true
[] without []::operators reporter // Reports input 1 without input 2. Example: [A B C D E] without [ ] = ABCDE

Last edited by PenguinLover1123 (June 9, 2021 15:11:51)


Good morning/afternoon/night
dhuls
Scratcher
1000+ posts

Blocks

PenguinLover1123
Scratcher
1000+ posts

Blocks

dhuls, done separating the suggestions! Other suggestion: https://scratch.mit.edu/discuss/topic/520286/?page=1#post-5322714

Last edited by PenguinLover1123 (June 8, 2021 21:11:16)


Good morning/afternoon/night
Paddle2See
Scratch Team
1000+ posts

Blocks

Are you asking if input “a” is an even multiple of “b”?

You might be interested in our “mod” operator - it returns the remainder of an integer division and can be used to determine this.

Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)



;
PenguinLover1123
Scratcher
1000+ posts

Blocks

Paddle2See wrote:
Are you asking if input “a” is an even multiple of “b”?

You might be interested in our “mod” operator - it returns the remainder of an integer division and can be used to determine this.
Yes, I am asking if input “a” is an even multiple of “b”. And then how do you do it with
() mod ()::operators reporter

Last edited by PenguinLover1123 (June 9, 2021 11:52:23)


Good morning/afternoon/night
han614698
Scratcher
1000+ posts

Blocks

PenguinLover1123 wrote:

Paddle2See wrote:
Are you asking if input “a” is an even multiple of “b”?

You might be interested in our “mod” operator - it returns the remainder of an integer division and can be used to determine this.
Yes, I am asking if input “a” is an even multiple of “b”. And then how do you do it with
() mod ()::operators reporter
<((a) mod (b)) = [0]>//means that it is an even multiple
<not <((a) mod (b)) = [0]>>//means that it is not an even multiple

(removed by moderator - please keep it on-topic)

Last edited by Paddle2See (June 9, 2021 16:46:44)


<Scratch Wikian | Forum Helper | 6000+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




fdreerf
Scratcher
1000+ posts

Blocks

PenguinLover1123 wrote:

Paddle2See wrote:
Are you asking if input “a” is an even multiple of “b”?

You might be interested in our “mod” operator - it returns the remainder of an integer division and can be used to determine this.
Yes, I am asking if input “a” is an even multiple of “b”. And then how do you do it with
() mod ()::operators reporter
The mod block reports what remains when you divide the first number by the second. So, for example, 10 / 3 = 3 with a remainder of 1, so 10 mod 3 is 1. When nothing is left over, that means the two numbers have evenly divided, so you can check this with:

<(() mod ()) = [0]>

(removed by moderator - please keep it polite)

Last edited by Paddle2See (June 9, 2021 16:45:27)


Hyped for MS-DOS 11.0
han614698
Scratcher
1000+ posts

Blocks

han614698 wrote:

(removed by moderator - please keep it on-topic)
Hi paddle


Bump

<Scratch Wikian | Forum Helper | 6000+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




han614698
Scratcher
1000+ posts

Blocks

han614698 wrote:

han614698 wrote:

(removed by moderator - please keep it on-topic)
Hi paddle


Bump

<Scratch Wikian | Forum Helper | 6000+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




Powered by DjangoBB