This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-02-06 02:08:34

Keani
Scratcher
Registered: 2009-08-15
Posts: 39

Pi

Would it be possible to have a block in operators that looks like this http://www.puffleland.myadopts.com/picuploads/jpg/6d6e96eb18ba4d078fbc9c646a9bf2b2.jpg as it would help with the calculator project I am making.


http://internetometer.com/image/9932.png

Offline

 

#2 2010-02-06 04:13:59

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Pi

Can't you just make a variable called pi and set it to 3.14159265? It's simple enough...  hmm


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2010-02-06 04:58:39

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Pi

A pi block could be better, because then it would be more precise. Unless it would only go to decimal places where scratch just rounds.
3.141592653589793238462643383279 would be helpful, if you try to make a variable that number, it gets rounded.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#4 2010-02-06 05:54:24

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Pi

Yeah... variables can't really handle that many digits. I use lists instead.  smile

Though I agree, pi as a block would be more precise... but there could be more useful blocks that come first.  hmm

I like the idea, though!  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#5 2010-02-06 06:05:38

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Pi

Well... the idea isn't bad, but you could just use a variable or list. The block just feels pretty unneccessary.  hmm

For being precise - would you really need to use pi with 50 digits? I think just 8 would suffice.  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#6 2010-02-06 06:45:19

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Pi

Jonathanpb wrote:

Well... the idea isn't bad, but you could just use a variable or list. The block just feels pretty unneccessary.  hmm

For being precise - would you really need to use pi with 50 digits? I think just 8 would suffice.  smile

I thought that was only 30 digits after the decimal place.

I just said pi as far as I can remember it.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#7 2010-02-06 11:03:48

Jumpstart3000
Scratcher
Registered: 2010-01-02
Posts: 13

Re: Pi

For pi to 60 digits, it's : 3.141592653589793238462643383279502884197169399375105820974494.  smile

Offline

 

#8 2010-02-06 18:14:34

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Pi

Some websites list millions, but I don't think the block needs to be that precise.  wink


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#9 2010-02-06 19:45:47

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Pi

I agree that would be useful.


http://i48.tinypic.com/2z5pqad.png

Offline

 

#10 2010-02-06 19:50:56

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Pi

Not amazingly useful, but I support the idea.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#11 2010-02-08 15:42:38

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Pi

Check it out:
http://en.wikipedia.org/wiki/Pi#Numerical_approximations

"For many purposes, 3.14 or 22/7 is close enough, although engineers often use 3.1416 (5 significant figures) or 3.14159 (6 significant figures) for more precision. "

So it's likely 5 significant figures is plenty for most things in Scratch.  smile


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#12 2010-02-11 12:44:57

fludd12
Scratcher
Registered: 2010-02-07
Posts: 9

Re: Pi

How about you divide 22 by seven, i think it equals pi. you just make a variable and set it so its like [set (pi^) to <[22] / [7]>]


My stuff | Ask me for an animated Icon! I will put it up on Mediafire!

Offline

 

#13 2010-02-11 16:54:27

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Pi

fludd12 wrote:

How about you divide 22 by seven, i think it equals pi. you just make a variable and set it so its like [set (pi^) to <[22] / [7]>]

That messes up after 2 decimal places.
I can remember up to 30.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

Board footer