giaro
2007-12-01 11:51:38 UTC
Hi,
I'm doing some maths and I've just found that the standard library
does not provide a standard PI value. In older post I see everyone says
you must define it by yourself, but as some of the standard functions
are in fact supposed to return that value, I feel there must be a better
way. For example, here's what a google search returned:
float PI = std::atan(1.0f) * 4.0f;
Anything more accurate?
Thanks
I'm doing some maths and I've just found that the standard library
does not provide a standard PI value. In older post I see everyone says
you must define it by yourself, but as some of the standard functions
are in fact supposed to return that value, I feel there must be a better
way. For example, here's what a google search returned:
float PI = std::atan(1.0f) * 4.0f;
Anything more accurate?
Thanks