Discuss Scratch

Mario852
Scratcher
21 posts

How to square a number?

Hello!

Can someone tell me where I can find a block which will allow me to raise a number to a power of 2.

*I do not want to multiply this number by itself, I want to use a block that will do it for me.*

Last edited by Mario852 (Feb. 24, 2013 17:40:16)

ImagineIt
Scratcher
1000+ posts

How to square a number?

Mario852 wrote:

Hello!

Can someone tell me where I can find a block which will allow me to raise a number to a power of 2.

*I do not want to multiply this number by itself, I want to use a block that will do it for me.*
It's not there. You must do it manually.
Hardmath123
Scratcher
1000+ posts

How to square a number?

Yeah, I spent a while trying to get them to add ()^(), but no luck.
TimothyLawyer
Scratcher
1000+ posts

How to square a number?

You can use 10^ and log () or e^ and ln () to do it.

That is, n^2 = 10^( 2 * log(n) ) or e^( 2 * ln(n) ).
bobbysq
Scratcher
100+ posts

How to square a number?

Hardmath123 wrote:

Yeah, I spent a while trying to get them to add ()^(), but no luck.
Just for you
Ten_Billion_Views
New Scratcher
1 post

How to square a number?

no, if you search up claculator on scratch they can somehow do it

Powered by DjangoBB