Mathematical Constants in JavaScript

Mathematical Constants in JavaScript are as bellow:

Math.E //2.718281828459045
Math.PI //3.14
Math.SQRT2 //1.414
Math.SQRT1_2 //0.707
Math.LN2 //0.693
Math.LN10 //2.302
Math.LOG2E //1.442
Math.LOG10E //0.434

Leave a Reply