Discuss Scratch

zacadoole1
Scratcher
100+ posts

The Round Block Should Be Well-Rounded.

OmnipotentPotato wrote:

I support this:
(round (3.14159265) to (4) decimal places :: operators)
matey1234
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

Scratchifier wrote:

So, here is what the round block is like currently:
(round ())
Here's what I think it should look like:
(round () to the [tenths place  v] ::operators)

So, what do you think? The options would be thousanths, hundreths, tenths, ones, tens, hundreds, and thousands. Also, possibly “to the ()th digit”, however only if somebody can think of a use for that… xD

There is also another idea, by Cyoce:
() rounded to the nearest (1 v) :: operators reporter
() floored to the nearest (1 v) :: operators reporter
() ceilinged to the nearest (1 v) :: operators reporter

Which one do you like more?

Thoughts?

-Scratchifier
I support for Cyoce's idea.

NOTE: This is not a necropost, it's still relevant.
rollercoasterfan
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

Semi-support. Would be helpful and useful, but the workarounds…..
DaSpudLord
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

No support because of th workaround.
spike43884
Scratcher
79 posts

The Round Block Should Be Well-Rounded.


() rounded to the nearest () :: operators reporter

Because it allows for much more customised rounding.
For example I might want to split the stage into ‘areas’ so I might do

((variable)) rounded to the nearest (150) :: operators reporter

EliteProgramming
Scratcher
100+ posts

The Round Block Should Be Well-Rounded.

Superdoggy wrote:

No support.

((round ((Variable) * (10))) / (10)) //Round to tenths place
((round ((Variable) / (10))) * (10)) //Round to tens place

Some people might understand that, but imagine all the new scratchers who need to do it the simple way like this:

PrincessPanda_test_ wrote:

Support!

Correct block:
(round () to the [tenths place v] :: operators)

support!
medians
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

(round () to the nearest () :perators)
thanks scratch for the emoji thing
(round () to the nearest () ::operators)
(round () to the nearest ( v) ::operators)

Last edited by medians (Oct. 30, 2021 01:59:23)

DeliStuff
Scratcher
100+ posts

The Round Block Should Be Well-Rounded.

(round (1.5) to the nearest ( tenth v) ::operators)
would be nice, so support!
dave-alt-4
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

ChocolatePi wrote:

Scratch is not a place to have stuff done for you. Pretty soon, people are gonna be suggesting stuff like

when green flag pressed
play tic-tac-toe game
quit

you should do stuff yourself, and if you're too lazy or not smart enough, you don't need it.

most people especially newer ones might not know about the workaround , please don't assume that everyone is as smart and dedicated as you are
mumu245
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

GCGCGC wrote:

Scratchifier wrote:

Superdoggy wrote:

No support.

((round ((Variable) * (10))) / (10)) //Round to tenths place
((round ((Variable) / (10))) * (10)) //Round to tens place

*Makes a heavy reference to Cyoce's signature*
Cyoce only refers to “workarounds” that involve loads of complicated square rooting/logarithms etc or are really complicated/annoying to use.
Never thought of that particular workaround (never had to use something like it), but it's simple to understand (only basic math) and only uses 4 blocks. Sounds okay to me.

Sorry, no support
-Few uses
-Very easy workaround
Yes, it's easy and I found it myself.
k0d3rrr
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

Bump because of a duplicate.
Anyway, yes this would be very useful for making better calculators in Scratch (and yes, you can use the workarounds provided above, OR, you could use a block that will be very useful, as most people won't know the workarounds because of how advanced they are.
historical_supa
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

This would have lots of uses for educational, complex and many more projects. Maybe the options could be:
0.1
1
10
100
1000
10000
and
100000
-Valtren-
Scratcher
1000+ posts

The Round Block Should Be Well-Rounded.

support, but I think it should be “significant figures”(or s.f. for short) instead of decimals because technically that's the correct terminology for the rounding accuracy of the number

Last edited by -Valtren- (Sept. 17, 2022 14:04:54)

Powered by DjangoBB