Discuss Scratch
- the2000
-
Scratcher
1000+ posts
More Round block capabilities
^ this opinion is wrong and anyone who quoted this has the right to be made fun ofLOL

Also as for the idea, I kind of like how small the round block is right now..? I like my math blocks small, okay? I don't know.
- Adamisawsome56
-
Scratcher
67 posts
More Round block capabilities
Right now the Round block looks like this:semi-support(round ())This block could use some more options. Right now, it only rounds to the nearest whole number.
It could be expanded to this:(round () to the nearest [ v])It could have options like: Nearest ten, nearest tenth, nearest thousandth, etc.
The default option would be the nearest whole number, because if it was something different, it could mess up a large quantity of projects.
I hope you take this idea into consideration!
Have a wonderful time coding!
~TriforceMayhem
I think it it should be like this:
(round () to the nearest multiple of ())
- ssvbxx2
-
Scratcher
100+ posts
More Round block capabilities
I think that the block should look like this:
round () to () decimal places :: operators reporterI made a project to simulate what this block would do: https://scratch.mit.edu/projects/487944699/
- Elemental_Warden
-
Scratcher
14 posts
More Round block capabilities
I think it should be something like
(round (75.6)to the nearest(hundredth,tenth,one,ten,etc...))
- Art_Of_Coding
-
New Scratcher
1 post
More Round block capabilities
This is actually a pretty good idea. As for the workaround, I hate to sound dumb, but I never thought of that. Also maybe you could add:(round () to the nearest [tenth v]::operators)And leave it at that.
(round () to the nearest [hundreth v]::operators)
(round () to the nearest [thousandth v]::operators)
I agree with jromangnoli if the makers of scratch see this please do this.
Last edited by Art_Of_Coding (Feb. 17, 2022 22:17:22)
- TriforceMayhem
-
Scratcher
27 posts
More Round block capabilities
Looking back on this, I was not that bright 6 years ago. The workaround for this is literally just a tiny bit of math. Expanding the round block like that really is not necessary at all.
Example of what I mean:
Nearest tenth:
Nearest hundredth:
And so on. Expanding the block might actually hurt more than help, since almost every other programming laguage also requires this kind of workaround. Having Scratch handle it for you will only cause confusion if you move up to another programming language. Not to mention a longer round block might also intimidate new users.
Example of what I mean:
Nearest tenth:
((round ((2.28) * (10))) / (10))= 2.3
Nearest hundredth:
((round ((6.7446) * (100))) / (100))= 6.74
And so on. Expanding the block might actually hurt more than help, since almost every other programming laguage also requires this kind of workaround. Having Scratch handle it for you will only cause confusion if you move up to another programming language. Not to mention a longer round block might also intimidate new users.
Last edited by TriforceMayhem (Feb. 18, 2022 01:41:44)
- TheClickerPerson
-
Scratcher
74 posts
More Round block capabilities
(round (round number) to the nearest (10 v)::operators)Would be more effective than
((round ((round number) * (10))) / (10))because the second example sometimes gives off a number like 10.000000000000000000046 and it's annoying
Last edited by TheClickerPerson (May 24, 2022 04:07:40)
- -iviedwall-
-
Scratcher
500+ posts
More Round block capabilities
It would be nice to have theWhat if people want to round numbers like 3.14149265358979 to the nearest thousandth or even the nearest 0.00000001? I don't think a dropdown will be enough for that many digits or places.(round ())be able to be to the nearest one, tenth, hundredth, etc. It would look like this:(round () to the nearest [tenth v]::operators)I hope you consider this as it would be very useful.
(round () to the nearest (0.1)::operators)
Last edited by -iviedwall- (May 24, 2022 07:17:58)
- BuzzedOut
-
Scratcher
500+ posts
More Round block capabilities
I think it should be more likeSo, if you want to round to the nearest million:(round () to the nearest ()::operators)so you can do things like(round (23) to the nearest (12):: operators)This would report 24
(round (23) to the nearest (1,000,000):: operators)That would take a while to type. I would just do a few presets.









