Definition of Pi - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Definition of Pi (
/showthread.php?tid=253086)
Definition of Pi -
nuriel8833 - 04.05.2011
Hello
Does anyone know how to define Pi in Pawno (the full definition not only 3.1415)?
Thanks for helpers
Re: Definition of Pai -
nuriel8833 - 04.05.2011
Quote:
Originally Posted by ******
Pi is an irrational number, that means there is no full definition. It is known to a few trillion decimal places, but no repeating pattern has been found yet. How accurate would you like it?
|
I know its an irrational number,but when I said full I ment as close as it can be to the origional pai
I think 50-100 numbers after the period is enough
Re: Definition of Pi -
nuriel8833 - 04.05.2011
Quote:
Originally Posted by ******
|
I read this a bit,but the code is not clear (he added variables like pid,pif and stuff,and I don't know what are they suppose to do)
But as far as I know,all I need is this:
pawn Код:
#define PI 3.1415926535897932384626433832795028841971693993751058209749445923078164062
Right?