Hacker News new | ask | show | jobs
by hdevalence2 5203 days ago
Wouldn't it be better to do

    #define M_TAU = (2.0*M_PI)
instead, so that it's clear that it's a math constant instead of a local variable? Also, I suspect that the math.h pi constant is accurate to more than 8 decimal places, so this way you don't lose precision.
1 comments

Whatever is appropriate in your context. :)

What I really mean is this: use it. If you're a tauist, but tau isn't in your header file / constant library / whatever you use, today might be a good day to put it there.