PI (missing include)?

Posted By: Carlos3DGS

PI (missing include)? - 06/10/09 11:57

I am using the variable "pi" in my Lite-C code but get an error that says it is "undeclared identifier".
When I write pi the text changes colour to red in sed like it knows what it is, but when I run I get that error.

I am using pi to calculate some angles in degrees to make them radians.
Mabe I am missing some "include" to be able to use it?
Does anyone know what include I need?
Posted By: EvilSOB

Re: PI (missing include)? - 06/10/09 13:52

It appears to me the old "pi" only shows up in SED cause it is in c-script.
I always use the line
#define PI 22/7 in my code somewhere
Posted By: Carlos3DGS

Re: PI (missing include)? - 06/10/09 15:29

Thanks smile
© 2023 lite-C Forums