Discuss Scratch

Elijah999999
Scratcher
1000+ posts

(round ()) block change

I use the round block a lot, and I don't want to have to change the dropdown every time I use that block.
ScratchCat1038
Scratcher
1000+ posts

(round ()) block change

The abs block wasn't used as much as the round block, so it got combined into the () of () block. However, the round block is very widely used, so I think it deserves its own block.
qwertycodechamp90411
Scratcher
100+ posts

(round ()) block change

What about it defaults to round instead of abs, and abs (), sin (), round () etc. You don’t need the of at all

And how would it ruin scripts?
medians
Scratcher
1000+ posts

(round ()) block change

TheHockeyist wrote:

No support. This would cause numerous scripts to stop working.
When the forever if and the original abs blocks were removed, scripts with them didn't stop working, as the forever if loop turned into the workaround, and the abs block functioned the same as before.
han614698
Scratcher
1000+ posts

(round ()) block change

bump
protactinics
Scratcher
48 posts

(round ()) block change

how is this still open? :: reporter sensing
CodeComet6161
Scratcher
1000+ posts

(round ()) block change

I don't really know the difference between
(round ())
and
([round v] ())::operators
However, I do want this:
(round () to the nearest [10 v])::operators
(Yes, I know abt TWG who said I couldn't want it)
medians
Scratcher
1000+ posts

(round ()) block change

CodeComet6161 wrote:

I don't really know the difference between
(round ())
and
([round v] ())::operators
However, I do want this:
(round () to the nearest [10 v])::operators
(Yes, I know abt TWG who said I couldn't want it)
Also, maybe an input instead of a dropdown?

protactinics wrote:

how is this still open? :: reporter sensing
The change hasn't been implemented yet

Last edited by medians (July 30, 2025 21:34:11)

CodeComet6161
Scratcher
1000+ posts

(round ()) block change

medians wrote:

CodeComet6161 wrote:

I don't really know the difference between
(round ())
and
([round v] ())::operators
However, I do want this:
(round () to the nearest [10 v])::operators
(Yes, I know abt TWG who said I couldn't want it)
Also, maybe an input instead of a dropdown?

protactinics wrote:

how is this still open? :: reporter sensing
The change hasn't been implemented yet
so this:
(round () to nearest ())
ok but it's gonna be 1 and 0 only bc there's no such thing as round to the nearest .5
medians
Scratcher
1000+ posts

(round ()) block change

CodeComet6161 wrote:

ok but it's gonna be 1 and 0 only bc there's no such thing as round to the nearest .5
No, it does exist. For example, 0.2 rounded to the nearest 0.5 is 0, while 0.3 rounded to the nearest 0.5 is 0.5.
Also, what do you mean only 1 and 0?? Wouldn't nearest 10, 100, etc work??
CodeComet6161
Scratcher
1000+ posts

(round ()) block change

medians wrote:

CodeComet6161 wrote:

ok but it's gonna be 1 and 0 only bc there's no such thing as round to the nearest .5
~snip~
Also, what do you mean only 1 and 0?? Wouldn't nearest 10, 100, etc work??
i meant numbers made of ones and zeros
protactinics
Scratcher
48 posts

(round ()) block change

([round v] of ()::operators)
(round () to the nearest ()::operators)

Powered by DjangoBB