Discuss Scratch

kayc0
Scratcher
13 posts

What are these blocks?

What are these blocks?

mod0

round

of9

Last edited by kayc0 (March 19, 2021 15:50:53)

Ihatr
Scratcher
1000+ posts

What are these blocks?

Mod gives you the remainder of a division problem, for example 3 mod 2 is 1

Round rounds the number in the block to the nearest whole number

The last one has multiple functions that each do different things, but I’m on mobile so I can’t check.
kayc0
Scratcher
13 posts

What are these blocks?

Ihatr wrote:

Mod gives you the remainder of a division problem, for example 3 mod 2 is 1

Round rounds the number in the block to the nearest whole number

The last one has multiple functions that each do different things, but I’m on mobile so I can’t check.

thx

sayThanks
mybearworld
Scratcher
1000+ posts

What are these blocks?

Explaining the third block:
Actions (selected by the first dropdown) will be made to the number (you type it in):
Those actions are:

Abs: Distance to 0, a negative number gets positive, a positive one stays like it is.
Floor: Rounds down. 8.1 results in 8, but 8.99 as well.
Ceiling: Rounds up. 8.99 results in 9, but 8.1 as well.
Sqrt: The square root. 4 results in 2, 81 results in 9.
(A-)Sin/Cos/Tan: Trigeometric functions. Learn more: sin,cos,tan,asin,acos,atan
Ln: The natural logarithm..
Log: The usual logarithm.
e^: e to the power of your number.
10^: 10 to the power of your number. Useful for having a 1 with a certain amount of 0 (10^6 results in 1,000,000 - 6 zeros.)

Hope that helped!
kayc0
Scratcher
13 posts

What are these blocks?

mybearworld wrote:

Explaining the third block:
Actions (selected by the first dropdown) will be made to the number (you type it in):
Those actions are:

Abs: Distance to 0, a negative number gets positive, a positive one stays like it is.
Floor: Rounds down. 8.1 results in 8, but 8.99 as well.
Ceiling: Rounds up. 8.99 results in 9, but 8.1 as well.
Sqrt: The square root. 4 results in 2, 81 results in 9.
(A-)Sin/Cos/Tan: Trigeometric functions. Learn more: sin,cos,tan,asin,acos,atan
Ln: The natural logarithm..
Log: The usual logarithm.
e^: e to the power of your number.
10^: 10 to the power of your number. Useful for having a 1 with a certain amount of 0 (10^6 results in 1,000,000 - 6 zeros.)

Hope that helped!


it did thx!!! : P:

Powered by DjangoBB