The syntax for Math any methods is : Math.method(number) Math.round():- Math.round(x) returns the nearest integer. Example:- Math.round(4.6); // 5 Math.round(4.3); // 4 Math.ceil():- Math.ceil(x) returns the value of x rounded up to its nearest...
Basic Mathematical Functions: math.sqrt(): Calculates the square root of a number. math.pow(): Raises a number to a specified power. math.exp(): Calculates the exponential of a number. math.log(): Calculates the natural logarithm of a number. ma...