Comment on Order of magnitude is a hell of a drug
fushuan@lemmy.blahaj.zone 3 days agoAs they should, if that’s the only thing you are using it for, don’t introduce a whole header file, just put the following in the constants.h or equivalent that the proj for sure has:
#define M_PI 3.14159265358979323846264338327950288
zaphod@sopuli.xyz 1 day ago
If I’m not completely mistaken M_PI is not part of the C standard, so depending on your stdlib or compiler or even compiler flags you will have to define it yourself even in C.