# M_PI definition?

Hi guys, i cant find the definition of the constant M_PI ?

i try to understand following command : axes_yaw_max = 90.0*M_PI/180.0;

M_PI definition?

Hi guys, i cant find the definition of the constant M_PI ?

i try to understand following command : axes_yaw_max = 90.0*M_PI/180.0;

add a comment

4

Your code looks like C(++), so I assume you are talking about M_PI in a C/C++ code file. M_PI is defined in math.h, usually located at /usr/include/ for linux gcc.

```
# define M_PI 3.14159265358979323846 /* pi */
```

If I got your question wrong please be more specific.

1

0

`pi of 3.142`

as in math.

Please start posting anonymously - your entry will be published after you log in or create a new account.

Asked: ** 2012-02-14 00:37:01 -0500 **

Seen: **3,503 times**

Last updated: **Feb 14 '12**

ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.