SA-MP Forums Archive
Pi ? For pawno - 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: Pi ? For pawno (/showthread.php?tid=215495)



Pi ? For pawno - Jeffry - 23.01.2011

Hello guys,

just a short question:
Is there a pre-defined way to get the 'Pi' ? (The 3.14159...)

Thanks for replied.


Jeffry


Re: Pi ? For pawno - Not available - 23.01.2011

You could just do:
pawn Код:
#define pI 3.141592653589793238462643383279502884



Re: Pi ? For pawno - Jeffry - 24.01.2011

That's what I did, but I wanted to know if there is a function, so it would be more precise.


Re: Pi ? For pawno - RyDeR` - 24.01.2011

Nope, there ain't no function. Just use 3.14.


Re: Pi ? For pawno - Jeffry - 24.01.2011

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
Nope, there ain't no function. Just use 3.14.
Okey, thank you.