Skip to content

Tag Archives: javascript-math

The Math.ceil method is used to return the smallest integer greater than or equal to a given number. The ceil() is always used as Math.ceil()… Read More
The Number.isNan method in JavaScript is used to determine whether the passed value is NaN(Not a Number) and is of the type “Number”. In JavaScript,… Read More
The JavaScript Math sin( ) method in Javascript is used to return the sine of a number. The Math.sin() method returns a numeric value between… Read More
The JavaScript Math min( ) Method is used to return the lowest-valued number passed in the method. The Math.min() method returns NaN if any parameter… Read More
The JavaScript Math max() Method is used to return the largest of zero or more numbers. The result is “-Infinity” if no arguments are passed… Read More
The Math.pow() method is used to power a number i.e., the value of the number raised to some exponent. Since Math.pow() is a static method… Read More
The Math.hypot() function in JavaScript is used to calculate the square root of the sum of squares of numbers passed to it as arguments. It… Read More
While performing operations on numbers we might sometimes want to use 32-bit numbers. JavaScript internally uses 64-bit floating point numbers and not 32-bit. So checking… Read More
The Math.trunc() method is used to return the integer part of a floating-point number by removing the fractional digits. In other words, Math.trunc() function cuts… Read More
Most of the JavaScript Developers use closure consciously or unconsciously. Even if they do unconsciously it works fine in most of the cases. But knowing… Read More
The JavaScript Math log( ) Method is used to return the natural logarithm (base e) of a number. The JavaScript Math.log() method is equivalent to… Read More

Start Your Coding Journey Now!