Discuss Scratch
- Discussion Forums
- » Suggestions
- » Could we please have an exponents block? ( ) ^ ( )
- unnor
-
Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
That does x^(2^y), not x^y, as well as only working with natural exponents.There is a workaround.an easier workaround is
I'll try to express it without scratchblocks.
(10 ^ ) of (log(2) * (10))
where you're finding 2^10
Square roots: (and any roots)
(10 ^) of (log(8) / (3))
where you're finding the cube root of 8
obviously these do not work with exponents or roots of zero.
anyway I still +1 this blockwhen green flag clicked
repeat (y)
set (x) to ((x) * (x))
end
Last edited by unnor (Sept. 30, 2026 19:58:15)
- HAL95131
-
Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
There is a workaround.an easier workaround is
I'll try to express it without scratchblocks.
(10 ^ ) of (log(2) * (10))
where you're finding 2^10
Square roots: (and any roots)
(10 ^) of (log(8) / (3))
where you're finding the cube root of 8
obviously these do not work with exponents or roots of zero.
anyway I still +1 this blockwhen green flag clicked
repeat (insert number)
set (n) to ((n) * (n))
end
thats really restrictive, the purpose of the exponent block is to provide accurate exponentiation with minimal precision errors
#1543Yesterday 12:20:19
- MrPrady2015
-
Scratcher
2 posts
Could we please have an exponents block? ( ) ^ ( )
How to find Exponents, Roots, and Square roots:

Hope this helps!

Hope this helps!
- Discussion Forums
- » Suggestions
-
» Could we please have an exponents block? ( ) ^ ( )