|
|
|
|
|
by laumars
3280 days ago
|
|
Generally yes. But pi is one of those occasions where it only needs to be a constant somewhere and then forgotten about. The last thing you need is developers accidentally mistyping the value of pi causing the output calculations to be wrong. If altering the precision of pi is something that matters, then the function should take a parameter for the precision rather than the value of pi. |
|