Skip to content

Tag Archives: javascript-math

Below is the example of the Math round() Method. Example: To round off a number to its nearest integer. <script type="text/javascript">     var round =Math.round(5.8);     document.write("Number… Read More
Below is the example of the Math atanh() Method.   Example:   html <script type="text/javascript">        document.write("When 1 is passed as a parameter: "                      + Math.atanh(1)); </script> Output:  … Read More
Below is the example of the Number isSafeInteger() Method.  Example:  Javascript <script type = "text/javascript">  document.write("Output : " + Number.isSafeInteger(44)); </script> Output:  Output : true… Read More
Below is the example of the Math atan2() Method.  Example: When y-coordinate is greater than x-coordinate:  Javascript <script type="text/javascript">        document.write(Math.atan2(90, 15));  </script> Output:  1.4056476493802699 The… Read More
The Math.clz32( ) function in JavaScript returns the number of leading zero bits in the 32-bit binary representation of a number. Clz32 stands for Count… Read More
The Math.acosh() function in Javascript is used to return the hyperbolic arc-cosine of a number. Math.acosh (x) = arcosh(x) = y ≧ 0 such that… Read More
The Math.sign() is a builtin function in JavaScript and is used to know the sign of a number, indicating whether the number specified is negative… Read More
The Math.imul() function in JavaScript is used to calculate the result of the 32-bit multiplication of the two integers passed as parameters to it. Math.imul()… Read More
Below is the example of the Number valueOf( ) Method. Example:          <script type="text/javascript">    var num=NaN;    document.write("Output : " + num.valueOf());              </script>  OUTPUT: Output :… Read More
Below is the example of the Math asin( ) Method. Example: <script type="text/javascript">    document.write("When 1 is  passed as a parameter: "                   + Math.asin(1)); </script> Output:… Read More
Below is the example of the Math acos( ) Method.   Example:   javascript <script type="text/javascript">          document.write("When 1 is  passed as a parameter: "                         + Math.acos(1)); </script>… Read More
Below is the example of the Math cos() Method. Example: <script type="text/javascript">          document.write("The cos of 0 : " + Math.cos(0)); </script> Output: The cos of… Read More
Below is the example of the Math tan() Method.  Example:  Javascript <script type="text/javascript">     document.write("When  zero is  passed as a parameter: "       + Math.tan(0)); </script> Output: … Read More
The Math.cbrt() function is used to find the cube root of a number. The cube root of a number is denoted as Math.cbrt(x)=y such that… Read More
Below is the example of the Math ceil() Method. Example: <script type="text/javascript">          document.write("Result : " + Math.ceil(.89)); </script> Output: Result : 1 The Math.ceil method… Read More

Start Your Coding Journey Now!