Discuss Scratch
- Garamol56
- Scratcher
100+ posts
CalcuBlock
In scratch complex calculations get thickened fast. Example:
Example:
It could do any sum involving the symbols “< > / * x + - ( )”
BUT I think we should keep the
(((((((((((6543.4) - (3)) / (8)) - (3)) / (86)) - (74)) / (038)) * (38)) - (4)) - (3)) + (((((6) - (3)) / (5)) * (9)) / (8)))I'm proposing one reporter block that does all of that.
Example:
(Calculate [(6543.4 - 3) / 8) - 3) / 86) - 74) / 038) * 38) - 4) - 3) + ((6 - 3) / 5) * 9) / 8))] :: operators)
It could do any sum involving the symbols “< > / * x + - ( )”
BUT I think we should keep the
([... v] of (9) :: operators)block.
Last edited by Garamol56 (Dec. 17, 2019 17:53:14)
Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
- CCPlymJoe
- Scratcher
100+ posts
CalcuBlock
Support
CCPlymJoe
CCPlymJoe
Last edited by CCPlymJoe (Feb. 22, 2018 16:56:36)
Chocolate muffins
- Border-Collie
- Scratcher
100+ posts
CalcuBlock
Maybe it can look like this:
And it can be in the Operators category.
(calculate ())(I forgot how to color scratchblocks)
And it can be in the Operators category.
If you see this
Please enter my draw to adopt
Draw to Adopt Studio
Click here for free characters
Coloring contest
My shop
Border-Collie
- hellounicorns2
- Scratcher
1000+ posts
CalcuBlock
Yes, like that (did I fix it) Maybe it can look like this:(calculate () :: operators)(I forgot how to color scratchblocks)
And it can be in the Operators category.
I think that if it looked like that then, yes, support.
inactive :)
- hellounicorns2
- Scratcher
1000+ posts
CalcuBlock
Yes, but the problem the author is stating is that the blocks get too thick. Also, how can you implement it yourself when you’re not a scratch team member? Just implement it yourself.
No support.
inactive :)
- badatprogrammingibe
- Scratcher
500+ posts
CalcuBlock
In the scratch editor, there is a block menu called “More Blocks”.Yes, but the problem the author is stating is that the blocks get too thick. Also, how can you implement it yourself when you’re not a scratch team member? Just implement it yourself.
No support.
Click on it, and create a block.
define evaluate [Expression]It's that simple.
... // This block calculates the value
set [return v] to (evaluation)
- hellounicorns2
- Scratcher
1000+ posts
CalcuBlock
Yes, but you cannot make circular blocks likeIn the scratch editor, there is a block menu called “More Blocks”.Yes, but the problem the author is stating is that the blocks get too thick. Also, how can you implement it yourself when you’re not a scratch team member? Just implement it yourself.
No support.
Click on it, and create a block.define evaluate [Expression]It's that simple.
... // This block calculates the value
set [return v] to (evaluation)
(this one :: operators)
inactive :)
- badatprogrammingibe
- Scratcher
500+ posts
CalcuBlock
It's still workaroundable though.Yes, but you cannot make circular blocks likeIn the scratch editor, there is a block menu called “More Blocks”.Yes, but the problem the author is stating is that the blocks get too thick. Also, how can you implement it yourself when you’re not a scratch team member? Just implement it yourself.
No support.
Click on it, and create a block.define evaluate [Expression]It's that simple.
... // This block calculates the value
set [return v] to (evaluation)(this one :: operators)
- Haz-_-
- Scratcher
500+ posts
CalcuBlock
I agree, theres many workarounds like this one: -snip-
It's still workaroundable though.
-snip- again
In the scratch editor, there is a block menu called “More Blocks”.
Click on it, and create a block.define evaluate [Expression]It's that simple.
... // This block calculates the value
set [return v] to (evaluation)
continue this hashtag if you live in australia [img]http://u.cubeupload.com/rabbitcarrots/FEDB1435D41540BFB9FB.jpeg[/img] is the image code xD oh and btw this siggy is from @Hellounicorns2 :cool:
- Garamol56
- Scratcher
100+ posts
CalcuBlock
define evaluate [Expression]1. It would be very hard to implement multiple () support
... // This block calculates the value
set [return v] to (evaluation)
2. It would be very inaccessible to new scratchers
4. As hellounicorns2 said, you cannot make
(circular :: operators)custom blocks.
5. What about people who needed a
(calculate () :: operators)block but couldn't find my (or anyone else's) project with a
define evaluate [Expression]custom block for backpacking.
... // This block calculates the value
set [return v] to (evaluation)
Last edited by Garamol56 (Feb. 23, 2018 10:30:43)
Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
- badatprogrammingibe
- Scratcher
500+ posts
CalcuBlock
It's very simple to implement this.define evaluate [Expression]1. It would be very hard to implement multiple () support
... // This block calculates the value
set [return v] to (evaluation)
2. It would be very inaccessible to new scratchers
4. As hellounicorns2 said, you cannot make(circular :: operators)custom blocks.
5. What about people who needed a(calculate () :: operators)block but couldn't find my (or anyone else's) project with adefine evaluate [Expression]custom block for backpacking.
... // This block calculates the value
set [return v] to (evaluation)
I could probably do it in a few minutes.
- Garamol56
- Scratcher
100+ posts
CalcuBlock
okay then. Can you link me the project when you are done? It's very simple to implement this.
I could probably do it in a few minutes.
Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
- badatprogrammingibe
- Scratcher
500+ posts
CalcuBlock
https://scratch.mit.edu/projects/205763551/okay then. Can you link me the project when you are done? It's very simple to implement this.
I could probably do it in a few minutes.
- Garamol56
- Scratcher
100+ posts
CalcuBlock
Your project couldn't do “5+(2+2)”
Let alone “(6543.4 - 3) / 8) - 3) / 86) - 74) / 038) * 38) - 4) - 3) + ((6 - 3) / 5) * 9) / 8))”
The block I'm proposing would be able to support infinite (or up until the project lags out) “()”'s
Example:
5+(3/(9+(2-(7/(2+(42-(4+8)))))))
Let alone “(6543.4 - 3) / 8) - 3) / 86) - 74) / 038) * 38) - 4) - 3) + ((6 - 3) / 5) * 9) / 8))”
The block I'm proposing would be able to support infinite (or up until the project lags out) “()”'s
Example:
5+(3/(9+(2-(7/(2+(42-(4+8)))))))
Last edited by Garamol56 (Feb. 23, 2018 11:34:25)
Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
- badatprogrammingibe
- Scratcher
500+ posts
CalcuBlock
Your project couldn't do “5+(2+2)”Just be patient while I'm fixing it.
Let alone “(6543.4 - 3) / 8) - 3) / 86) - 74) / 038) * 38) - 4) - 3) + ((6 - 3) / 5) * 9) / 8))”
The block I'm proposing would be able to support infinite (or up until the project lags out) “()”'s
Example:
5+(3/(9+(2-(7/(2+(42-(4+8)))))))
It should only take a few minutes.
Fixed
Last edited by badatprogrammingibe (Feb. 23, 2018 11:43:13)
- Garamol56
- Scratcher
100+ posts
CalcuBlock
I thought you said it was simple? I did a see inside and it looks very complex
Last edited by Garamol56 (Feb. 23, 2018 11:42:52)
Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
- badatprogrammingibe
- Scratcher
500+ posts
CalcuBlock
It is very simple. I thought you said it was simple? I did a see inside and it looks very complex
If you think that it is “complex” in any way, then… well, I don't know what to say.
Anyways, I fixed it.
If you don't match parenthesis correctly, it doesn't work though.
Last edited by badatprogrammingibe (Feb. 23, 2018 11:44:55)
- Garamol56
- Scratcher
100+ posts
CalcuBlock
So this:
Is simpler than this?
Is simpler than this?
(calculate () :: operators)And anyway that's going to be very hard to create for new scratchers
Last edited by Garamol56 (Feb. 23, 2018 12:21:40)
Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
- badatprogrammingibe
- Scratcher
500+ posts
CalcuBlock
I never said it's simpler than that, but it is very simple. So this:
Is simpler than this?(calculate () :: operators)And anyway that's going to be very hard to create for new scratchers
I find your second comment very insulting to new scratchers like myself.
Any person that is semi-decent at programming would be able to create this.