How to find the value of π (pi)

I know that all you have to do to find the value of pi is

pi

but. I want to find more decimal places than the ones it gives. Even if there is a command that allows you to find a more precise position, I would like to know how to write a script that would find a certain amount of digits in pi. I really would like to find out. Please help me!

Thanks.

Wiz:

Unless you enjoy calculus, this is probably outside the range of AppleScript’s abilities. However, you can jump to this website to download pi in multiple different sizes for instance, and then set them as strings:

set pi01 to "3.141592653589793238462643383279502884197169399375" --pi to 50 digits
set pi02 to "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706" --pi to 100 digits

You can now rock on from there, or even larger strings if you desire.

Be sure to give proper credit to Archimedes while you are at it.

Or Daniel Tammet!..http://www.pi-world-ranking-list.com/lists/details/tammet.html

Mr. Tammet and I share the distinction of anchoring the end points of the Dan T. intelligence spectrum.

  • Dan