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

#1 2012-11-22 13:51:12

Tedbear2
Scratcher
Registered: 2012-11-17
Posts: 7

I have a question.

What do the (Mod) (Round) and (sqrt, abs, sin) etc. Buttons do?

Offline

 

#2 2012-11-22 13:57:34

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: I have a question.

1). Mod divides the first number by the second one and give the remainder. For example:

(9) mod (4) = (1)

(4) mod (4) = (0)


2). Round rounds a number for you. For example:

round (0.7) = 1

round (0.4) = 0


3). Sqrt means square root and gives you a number's square root; abs gives you a number's distance from 0, and a lot of the others are for finding measurements in a triangle. For example:

sqrt (4) = (2)

sqrt (16) = (4)

abs (2) = (2)

abs (-7) = 7

  |\
  |z°\
x|      \ y
  |_____\

(cos (z°)) * y = x

I hope that this answers your question!

Last edited by ErnieParke (2012-11-22 14:03:08)


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2012-11-22 15:14:56

Tedbear2
Scratcher
Registered: 2012-11-17
Posts: 7

Re: I have a question.

thanks!

Offline

 

#4 2012-11-22 17:53:05

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: I have a question.

Tedbear2 wrote:

thanks!

Your welcome and happy Thanksgiving Day!


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer