J
Jay Wolfe
Hi,
If I define a macro as follows
#define COSTHETA cos(45.0*3.14159256/180.0)
I believe that any time COSTHETA appears it is simply replaced by the
defined text, which results in the cos(...) being calculated in my program
every time. Is there a way to get the preprocessor to calculate the cosine
and just replace COSTHETA with its final number? I know I could define a
const variable but I just want the final number.
Thanks for any help.
Jay
If I define a macro as follows
#define COSTHETA cos(45.0*3.14159256/180.0)
I believe that any time COSTHETA appears it is simply replaced by the
defined text, which results in the cos(...) being calculated in my program
every time. Is there a way to get the preprocessor to calculate the cosine
and just replace COSTHETA with its final number? I know I could define a
const variable but I just want the final number.
Thanks for any help.
Jay