Comment

Comment by hdevalence2

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.
parent hdevalence2 14 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton