To compute square number you only need the number squared - i.e. multiplied by itself.

Are you sure it is your problem?

Perhaps you meant "Square Root"?

There is a ready method...