PI constant

Non-platform specific questions.

PI constant

Postby Fuzzy » Sun Oct 14, 2007 8:17 am

What is the constant for PI in GE? I dont see any reference to it in the help.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: PI constant

Postby pixelpoop » Sun Oct 14, 2007 8:36 am

you can just output PI to a text actor (textNumber=PI;) and see. it is 3.14159
User avatar
pixelpoop
 
Posts: 276
Joined: Tue Aug 29, 2006 9:32 pm
Score: 28 Give a positive score

Re: PI constant

Postby Fuzzy » Sun Oct 14, 2007 12:06 pm

thanks
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: PI constant

Postby Game A Gogo » Sun Oct 14, 2007 3:34 pm

there is actually a PI constant that is already define in GE? I always used "#define PI=3.1415926535897932384626433832795" in the global code
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron