Math Object Property Summaries : Math « Development « JavaScript DHTML






Math Object Property Summaries

  


Math                    Description                   Approximate Value 
Properties 
E                       Euler's constant              2.718281828459045091 
LN10                    Natural logarithm of 10       2.302585092994045901 
LN2                     Natural logarithm of 2        0.6931471805599452862 
LOG10E                  Base 10 logarithm of E        0.4342944819032518167 
LOG2E                   Base 2 logarithm of E         1.442695040888963387 
PI                      PI                            3.141592653589793116 
SQRT1_2                 Square root of 1/2            0.7071067811865475727 
SQRT2                   Square root of 2              1.414213562373095145 

   
    
  








Related examples in the same category

1.Demo all math methods
2. Counting Rabbits (Calculating the Fibonacci Series Using a Recursive Function)
3.Math Round: round a number to the nearest whole number
4.Max number: get max number from two inputs
5.Min number: get the min number from two inputs
6.Using the Math Object
7.Math.max(inp1, inp2, inp3)
8.Math.min(inp1, inp2, inp3)
9.Math.random()
10.Math.round(rndNum)
11.Parenthesis for math statement
12.Using the const Keyword (Firefox only)
13.Calculate with Math.PI