Discuss Scratch

CodeComet6161
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

bump, also this would be nice with this:

[] ^ []::operators reporter

[] √ []::operators reporter

[] ^^ []::operators reporter//<--- What I want

Last edited by CodeComet6161 (Oct. 3, 2025 10:20:50)

mtaka4
Scratcher
500+ posts

Could we please have an exponents block? ( ) ^ ( )

CodeComet6161 wrote:

bump, also this would be nice with this:

[] ^ []::operators reporter

[] root []::operators reporter// help me i need a root symbol

[] ^^ []::operators reporter//<--- What I want
√ <- this?
CodeComet6161
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

mtaka4 wrote:

CodeComet6161 wrote:

bump, also this would be nice with this:

[] ^ []::operators reporter

[] root []::operators reporter// help me i need a root symbol

[] ^^ []::operators reporter//<--- What I want
√ <- this?
thanks ^-^
BoyoolHarita
Scratcher
100+ posts

Could we please have an exponents block? ( ) ^ ( )

support
mtaka4
Scratcher
500+ posts

Could we please have an exponents block? ( ) ^ ( )

Cool, but workaround if you mean something like 1²

define power of (number) (small number)
repeat ((small number) - (1))
set [result v] to ((number) * (number))
end
jmb1293634
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

mtaka4 wrote:

Cool, but workaround if you mean something like 1²

define power of (number) (small number)
repeat ((small number) - (1))
set [result v] to ((number) * (number))
end
it doesn't work with decimals
mtaka4
Scratcher
500+ posts

Could we please have an exponents block? ( ) ^ ( )

jmb1293634 wrote:

mtaka4 wrote:

Cool, but workaround if you mean something like 1²

define power of (number) (small number)
repeat ((small number) - (1))
set [result v] to ((number) * (number))
end
it doesn't work with decimals
Yeah you have a point
ywps231326-2
New Scratcher
2 posts

Could we please have an exponents block? ( ) ^ ( )


hope they will add this

Last edited by ywps231326-2 (Oct. 6, 2025 12:13:52)

ywps231326-2
New Scratcher
2 posts

Could we please have an exponents block? ( ) ^ ( )

scratchblocks (5).png hope so
2357895
Scratcher
58 posts

Could we please have an exponents block? ( ) ^ ( )

I support this. Exponents are a very important part of math and putting them in scratch would help more people learn how to use them (while also making the lives of scratch users easier).
jasonzawtun
Scratcher
41 posts

Could we please have an exponents block? ( ) ^ ( )

2357895 wrote:

I support this. Exponents are a very important part of math and putting them in scratch would help more people learn how to use them (while also making the lives of scratch users easier).

I Will support until it is added.

repeat until <not <(kumquat) > [0]>>
delete kumquat.
end

Last edited by jasonzawtun (Oct. 6, 2025 23:55:24)

BoyoolHarita
Scratcher
100+ posts

Could we please have an exponents block? ( ) ^ ( )

mtaka4 wrote:

Cool, but workaround if you mean something like 1²

define power of (number) (small number)
repeat ((small number) - (1))
set [result v] to ((number) * (number))
end
This code does not update what “number” is, meaning it can only set result to number squared. Something more along the lines of the following would allow it to work properly (this did take some workshopping, but for every integer greater than or equal to 0 it works as it should)
define (number1) ^ (number2)
set [result v] to (1)
repeat (number2)
set [result v] to ((result) * (number1))
end
Toodchop
Scratcher
100+ posts

Could we please have an exponents block? ( ) ^ ( )

There's a chance that it would look like this instead:

(() ** () :: operators)
pippy2011eight
Scratcher
100+ posts

Could we please have an exponents block? ( ) ^ ( )

Toodchop wrote:

There's a chance that it would look like this instead:

(() ** () :: operators)
I think it's more likeley to look like this:
((2) ^ (5) ::operators)
bloxyandbrew
Scratcher
100+ posts

Could we please have an exponents block? ( ) ^ ( )

+5, this is a good idea and has a pretty confusing workaround.
mtaka4
Scratcher
500+ posts

Could we please have an exponents block? ( ) ^ ( )

bloxyandbrew wrote:

+5, this is a good idea and has a pretty confusing workaround.
Yeah. There's a workaround that works for decimals with
([10^ v] of ()::operators)
this block, but it's very complicated.
BZTC_Scratch
Scratcher
74 posts

Could we please have an exponents block? ( ) ^ ( )

mtaka4 wrote:

bloxyandbrew wrote:

+5, this is a good idea and has a pretty confusing workaround.
Yeah. There's a workaround that works for decimals with
([10^ v] of ()::operators)
this block, but it's very complicated.
But it is extremely limited! We do need a () ^ () block!!
BZTC_Scratch
Scratcher
74 posts

Could we please have an exponents block? ( ) ^ ( )

CodeComet6161 wrote:

bump, also this would be nice with this:

[] ^ []::operators reporter

[] √ []::operators reporter

[] ^^ []::operators reporter//<--- What I want

scratch needs to add these
jasonzawtun
Scratcher
41 posts

Could we please have an exponents block? ( ) ^ ( )

BZTC_Scratch wrote:

CodeComet6161 wrote:

bump, also this would be nice with this:

[] ^ []::operators reporter

[] √ []::operators reporter

[] ^^ []::operators reporter//<--- What I want

scratch needs to add these

say [Agreed.]
CodeComet6161
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

bump

Powered by DjangoBB