Discuss Scratch
- Discussion Forums
- » Suggestions
- » Could we please have an exponents block? ( ) ^ ( )
- MagicCoder330
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
we can already do this with this simple script:(#761)Again, I'm talking about extremely large numbers that aren't large enough to be recognized as infinity!The fact that ST won't add this block because of “Fear of extremely large number crashing projects” is stupid since we could also do:Scratch turns equations that evaluate to infinity into the string “infinity”- meaning that it's actually far easier for JavaScript to handle it on the backend than something like 9999999999999999999999999999999999999999999999999999, even if it's converted to a bigint.((-1) / (0)) // Negative Infinityand even more ways to make big numbers in regular Scratch without this block!
((1) / (0)) // Positive Infinity
((-1) * ([10 ^ v] of (309))) // Negative Infinity
([10 ^ v] of (309)) // Positive Infinity
when green flag clickedso the exponent block wouldn't change how numbers can crash things
forever
set [a variable v] to (join(a variable) (a variable))
end
Last edited by MagicCoder330 (June 4, 2024 16:15:22)
- AHypnoman
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Deleted.
Last edited by AHypnoman (June 4, 2024 22:22:52)
- medians
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
To merge all of the blocks (well, as in +, -, *, /, and then add ^)?? Allow people to swap between the options?? What are you talking about again??The block proposed by the person I quoted had a dropdown, but two inputs. That block shape doesn't exist (in the operators section, at least), so what's the dropdown for? Unless ([abs v] of ()) is updated to change shape for exponent operations, the dropdown doesn't make sense. (I'm not commenting on the technicalities of implementing this, just that it doesn't make sense to have a dropdown - I should've specified what I meant in the post you quoted)~Snip~What are you talking about??
That wouldn't fit any existing block shape. An entirely new block would be necessary for this.
Also, no, it does not have to be in that block, it could just be separate like it always has been
- AHypnoman
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
oh aha I didn's see the “with all the operator menus?”To merge all of the blocks (well, as in +, -, *, /, and then add ^)?? Allow people to swap between the options?? What are you talking about again??The block proposed by the person I quoted had a dropdown, but two inputs. That block shape doesn't exist (in the operators section, at least), so what's the dropdown for? Unless ([abs v] of ()) is updated to change shape for exponent operations, the dropdown doesn't make sense. (I'm not commenting on the technicalities of implementing this, just that it doesn't make sense to have a dropdown - I should've specified what I meant in the post you quoted)~Snip~What are you talking about??
That wouldn't fit any existing block shape. An entirely new block would be necessary for this.
Also, no, it does not have to be in that block, it could just be separate like it always has been
I am a fool :P
- A_Nyan_In_Space
-
Scratcher
100+ posts
Could we please have an exponents block? ( ) ^ ( )
To merge all of the blocks (well, as in +, -, *, /, and then add ^)?? Allow people to swap between the options?? What are you talking about again??The block proposed by the person I quoted had a dropdown, but two inputs. That block shape doesn't exist (in the operators section, at least), so what's the dropdown for? Unless ([abs v] of ()) is updated to change shape for exponent operations, the dropdown doesn't make sense. (I'm not commenting on the technicalities of implementing this, just that it doesn't make sense to have a dropdown - I should've specified what I meant in the post you quoted)~Snip~What are you talking about??
That wouldn't fit any existing block shape. An entirely new block would be necessary for this.
Also, no, it does not have to be in that block, it could just be separate like it always has been
(() [ ^ v] ()::operators)
(() [ + v] ()::operators)
- medians
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Bringing this topic up.
- jmdzti_0-0
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
But it would be a good idea to still keep the old blocks, but hidden in the pallete. Just so all projects don’t break.What are you talking about??+1, but maybe just add this?That wouldn't fit any existing block shape. An entirely new block would be necessary for this.((3) [^ v] (3)::operators)with all the operator menus?
Anyways (to the person that you quoted), that would make scripts longer. I think block switching should just be reimplemented, and () ^ () could be one of the options
- A_Nyan_In_Space
-
Scratcher
100+ posts
Could we please have an exponents block? ( ) ^ ( )
Maybe all existing blocks would be replaced with the new ones.But it would be a good idea to still keep the old blocks, but hidden in the pallete. Just so all projects don’t break.What are you talking about??+1, but maybe just add this?That wouldn't fit any existing block shape. An entirely new block would be necessary for this.((3) [^ v] (3)::operators)with all the operator menus?
Anyways (to the person that you quoted), that would make scripts longer. I think block switching should just be reimplemented, and () ^ () could be one of the options
- medians
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
I meant have the same blocks (not in a dropdown), but you could right click to swap the blocks between each other, like you could in 1.x and 2.0.But it would be a good idea to still keep the old blocks, but hidden in the pallete. Just so all projects don’t break.What are you talking about??+1, but maybe just add this?That wouldn't fit any existing block shape. An entirely new block would be necessary for this.((3) [^ v] (3)::operators)with all the operator menus?
Anyways (to the person that you quoted), that would make scripts longer. I think block switching should just be reimplemented, and () ^ () could be one of the options
Also, the go to front block turns into go to (front) layer when uploaded to 3.0, same thing happens when you upload the forever if block to 1.x and 2.0, it turns into an if block in a forever loop.
Last edited by medians (June 26, 2024 14:42:15)
- TheCreatorOfUnTV
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
It can't take more than a few seconds to add, can't it?Apparently, it has taken 11 years to add it.
- -Clickertale_2-
-
Scratcher
100+ posts
Could we please have an exponents block? ( ) ^ ( )
The fact that ST won't add this block because of “Fear of extremely large number crashing projects” is stupid since we could also do:Also the Username block was a block that might of never of been added due to security reasons, (See the reason here) which is more understandable than not adding a block that can make large numbers!((-1) / (0)) // Negative Infinityand even more ways to make big numbers in regular Scratch without this block!
((1) / (0)) // Positive Infinity
((-1) * ([10 ^ v] of (309))) // Negative Infinity
([10 ^ v] of (309)) // Positive Infinity
Also I am only using Infinity as an example of a big number in this example!
I know that Infinity is a special case but I didn't want to make a weird equation multiple times to make an actual large number. Even tho this block would also produce Infinity if the numbers inputted are large enough. (I knew that Infinity is a special case while making this post but I didn't feel the need to specify the fact that Infinity is a special case since Infinity is also seen as a big number that is easier to deal with).
(If you are going to complain about me using Infinity as a big number then make me 1000 different equations in Scratch that can all make big numbers I DARE you! ).
- BigNate469
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
+99“Support”, “No Support” “+1” and “-1” are all equally not adding anything to the discussion on why this would be a good addition to Scratch. Considering that this is Discuss Scratch, please state why you support. The forums are not a polling service.
Last edited by BigNate469 (Aug. 4, 2024 21:05:33)
- TheCreatorOfUnTV
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
1000 different equations:The fact that ST won't add this block because of “Fear of extremely large number crashing projects” is stupid since we could also do:Also the Username block was a block that might of never of been added due to security reasons, (See the reason here) which is more understandable than not adding a block that can make large numbers!((-1) / (0)) // Negative Infinityand even more ways to make big numbers in regular Scratch without this block!
((1) / (0)) // Positive Infinity
((-1) * ([10 ^ v] of (309))) // Negative Infinity
([10 ^ v] of (309)) // Positive Infinity
Also I am only using Infinity as an example of a big number in this example!
I know that Infinity is a special case but I didn't want to make a weird equation multiple times to make an actual large number. Even tho this block would also produce Infinity if the numbers inputted are large enough. (I knew that Infinity is a special case while making this post but I didn't feel the need to specify the fact that Infinity is a special case since Infinity is also seen as a big number that is easier to deal with).
(If you are going to complain about me using Infinity as a big number then make me 1000 different equations in Scratch that can all make big numbers I DARE you! ).
([10 ^ v] of (308))
(([10 ^ v] of (308)) - (1))
(([10 ^ v] of (308)) - (2))
(([10 ^ v] of (308)) - (3))
(([10 ^ v] of (308)) - (4)) // You get where this is going, right?
(995 more... :: grey) // To prevent blockspam.
Anyway…Infinity is much easier to handle than 1e+308.
Last edited by TheCreatorOfUnTV (Aug. 4, 2024 21:20:24)
- HelloJelloPeople
-
Scratcher
92 posts
Could we please have an exponents block? ( ) ^ ( )
Two blocks that could be removed are the
([10^ v] of (9))and
([e^ v] of (9))as long as e is added as a valid operator input.
- medians
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Two blocks that could be removed are theMaybe, if a constant block is added, like this:([10^ v] of (9))and([e^ v] of (9))as long as e is added as a valid operator input.
constant [e v]::operators reporter
constant [pi v]::operators reporter
- SpyCoderX
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Might also help to make a separate “Advanced Math” section, which differentiates the simple “+-*/“ from the more complex “sin cos constant”?Two blocks that could be removed are theMaybe, if a constant block is added, like this:([10^ v] of (9))and([e^ v] of (9))as long as e is added as a valid operator input.constant [e v]::operators reporter
constant [pi v]::operators reporter
Also, if you have an “advanced math” section, the stuff in it could have a “?” next to them which gives an explanation of that block when clicked.
- FishBone1024
-
Scratcher
1 post
Could we please have an exponents block? ( ) ^ ( )
this will definitely come in useful
- medians
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Also, if you have an “advanced math” section, the stuff in it could have a “?” next to them which gives an explanation of that block when clicked.The explanation thing literally used to exist for every block in Scratch 2.0..