Yeah, I got fed up with writing 3.1415926535897932384626433832795 all the time, and had a brain wave…why not use the C preprocessor command #define.
So I came up with a header called pi.h
If you want it, email me on waste@mytime.com
ill be glad to have your pi.h, I have a program in which I have to write 3.1415926535897932384626433832795 for 51 times.
Please email me it on dontpost@advanceforum.com
/* Define _USE_MATH_DEFINES before including math.h to expose these macro
* definitions for common math constants. These are placed under an #ifdef
* since these commonly-defined names are not part of the C/C++ standards.
*/
AFAIK, Nvidia SDK files included M_■■ definitions with higher precision. I allways wondered why, if everything is droped down to float, multiplied via float arithmetic x times and is ruinded via z precision…