I'm trying to make a scratch program that calculates Pi, but I can't because the variable keeps on rounding itself! Is there a way to make it stop doing that?
Offline
Oh, and it rounds to 3.1. I want hundreds of digits!!
Offline
no I've gotten t to go past that (but only in a bug in my game!)
Offline
I belive if you use the Say block, it will show more digits, but only online. Another approach that works well both online and in Scratch is to use Kevin Karplus's project: Print Decimal which will print up to 15 places to the right of the decimal point.
http://scratch.mit.edu/projects/kevin_karplus/2951
I used this in my Pi projects and it worked fine.
Offline
I recommend the newer print_scientific
http://scratch.mit.edu/projects/kevin_karplus/80371
Offline