This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-07-18 12:45:21

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Operator blocks

I have a few operators that I'm wondering about.

1.

 
mod
 

2.
round
 

3.
join
hello
world

4.
letter
1
of
world

5.
length of
world

What are these used for?

Last edited by Firedrake969 (2012-07-18 12:45:47)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2 2012-07-18 13:07:38

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Operator blocks

1) Returns the remainder after division (i.e. 23 mod 6 = 5)
2) Rounds a number to the nearest integer (i.e. round(6.782) = 7)
3) Joins two strings together (i.e. join(Hello |World) = "Hello World")
4) Returns the letter of a string (can also be a number) (i.e. letter (5) of (My name) = "a")
5) Returns the length of a string (can also be a number) (i.e. length of (world) = 5)


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2012-07-18 13:16:05

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Operator blocks

Ok thanks.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#4 2012-07-18 13:54:39

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Operator blocks

Closed by request of owner.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer