Discuss Scratch

JustWaitA_Sec
Scratcher
23 posts

How much processing do square roots use?

In a project I'm working on, I use the square root of 2 quite a lot, and I was wondering if it was worth setting the square root of 2 to a variable at the beginning of the project, like this

setroot2tosqrtof2

or if I should just use sqrt 2 wherever I need to.
Super_Scratch_Bros20
Scratcher
1000+ posts

How much processing do square roots use?

I understand the words you’re saying, but what do you mean when you said you’re wondering if “it was worth” doing it?
JustWaitA_Sec
Scratcher
23 posts

How much processing do square roots use?

I good now, I've decided to just do it
Super_Scratch_Bros20
Scratcher
1000+ posts

How much processing do square roots use?

JustWaitA_Sec wrote:

I good now, I've decided to just do it

Okay…cool. So the problem’s resolved now, right? I want to double-check here.

Powered by DjangoBB