Discuss Scratch

Prince_Toast
Scratcher
96 posts

Round Block

What does the
(round ())

Block do
meepeygamer567
Scratcher
500+ posts

Round Block

It basically rounds the inputted number to the nearest whole number. It’s math, Literally.
Spentine
Scratcher
1000+ posts

Round Block

If you have a number that is not an integer, (example: 0.32, 52.31, -2.13) then it will return an integer that is the closest to the number in it.

3.21 becomes 3
51.62 becomes 52
-0.4 becomes 0
1.5 becomes 2

you get it.
Prince_Toast
Scratcher
96 posts

Round Block

Yes. I'm on a high level in math, I get A's. I just inputted 6 and thought it'd zoom up to 10
musicROCKS013
Scratcher
1000+ posts

Round Block

Prince_Toast wrote:

Yes. I'm on a high level in math, I get A's. I just inputted 6 and thought it'd zoom up to 10
To round to the nearest 10 do this:

((round ((Input) / (10))) * (10))
Prince_Toast
Scratcher
96 posts

Round Block

Thank you
lukaslakas
Scratcher
3 posts

Round Block

I already know rounding off numbers. Here:

(round (rounded number))
set [ rounded number v] to [0.5]

Start by rounding off the 0.5, then count on your fingers.

0.5, 0.6, 0.7, 0.8, 0.9, 1.0.

The answer is 1.
Hello everyone! I won't necropost again! I'm sorry for necroposting, HCJSCT! I was offline while my iPad/Mac is gone/not active. Thank you for saying: “Everything's good! Just don't do it again.” Thanks HCJSCT for saying that! I won't do it again! By: Lukas
ththorn
New Scratcher
41 posts

Round Block

meepeygamer567 wrote:

It basically rounds the inputted number to the nearest whole number. It’s math, Literally.
i cant believe it took me three years to learn this

Powered by DjangoBB