PDA

View Full Version : using PI



mynahz
16th July 2008, 03:18
pardon me everyone, i have a silly question.

if i want to use pi in calculations, do I put

#include <math.h>
or
#include "math.h"
?

and do I need to check if there is actually a math.h in the program I am using?:o

mynahz
16th July 2008, 03:27
oops. i found out the problem. my math.h actually calls it M_PI. problem solved! :D