Posted By


pmw57 on 07/16/14

Tagged


Statistics


Viewed 598 times
Favorited by 0 user(s)

Math.TAU polyfill


/ Published in: JavaScript
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. if (!Math.TAU) {
  2. Math.TAU = 2 * Math.PI;
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.