![]() To use the below functions, we have to use the object as a prefix. The following table will show you the list of JavaScript Functions available in Math Object. Properties Description Math.e It will return the Euler’s Number e, approximately equal to 2.71828 Math.ln2 It will return a Natural Logarithm of 2, approximately equal to 0.693 Math.ln10 This Function returns the Natural Logarithm of 10, approximately equal to 2.302 Math.log2e The logarithm of E base 2, approximately equal to 1.443 Math.log10e The logarithm of E base 10, approximately equal to 0.434 Math.pi This JavaScript Math function returns the Pie Value, approximately equal to 3.14 Math.sqrt1_2 Square Root of 1/2 or 0.5, approximately equal to 0.707 Math.sqrt2 Square Root of 2, approximately equal to 1.414 JavaScript Math Object Methods The following table will show you the list of Properties or Constants available in JavaScript Math Object. ![]() So, we can access the properties as PI and JavaScript math functions as abs(number). ![]() Unlike other global objects, the properties and Functions available inside the math object are static. The JavaScript Math Objects provide various Functions and Constants / Properties, which allow us to perform mathematical functions.
0 Comments
Leave a Reply. |