/ Published in: JavaScript
Brendan Eich is working on officially adding Math.TAU to JavaScript.
Until JavaScript has full support for the Math.TAU constant, you can add the following at the start of your programs to add support for the TAU constant.
Until JavaScript has full support for the Math.TAU constant, you can add the following at the start of your programs to add support for the TAU constant.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (!Math.TAU) { Math.TAU = 2 * Math.PI; }