1. mathematical operations defined by math objects
Javascript supports some complex arithmetic operations. These complex operations are implemented by using functions and constants defined as attributes of the math object:
Math. Pow (9007199254740992
The Math object is different from the above object. It can be said to be a common mathematics class, which has many mathematical methods used for various mathematical operations, but Math objects do not need to be constructed, you can directly use
JavaScript Math and Number objects, javascriptmath
1. Math object
1.1 Introduction
A Math object is a mathematical object that provides mathematical calculations for data, such as getting absolute values and getting rounded up. No constructor and
5.2 infinity and Nan
IEEE 754 floating point numbers can represent positive or negative infinity, andNan(Not a number ). these three values arise from calculations whose result is undefined or cannot be represented accurately. you can also
NaN is an abbreviation for not a number. It is a numeric type value, typically in a floating-point calculation, that represents a value that is undefined or cannot be represented. Also, you cannot use the equality operator (= =) to check NaN. In the
In js, Math functions can include various methods, such as Math. random (): Math. round (); Math. floor (); and Math. ceil (); opposite, Math. floor (); let me introduce it later.
Math functions are mainly used to process numbers.
Math. random ():
1. Math Object
1.1 Introduction
The Math object, which is a mathematical object, provides a mathematical calculation of the data, such as acquiring absolute value, rounding up, and so on. No constructors, cannot be initialized, provides only
1. Math Object1.1 Introduction The Math object, which is a mathematical object, provides a mathematical calculation of the data, such as acquiring absolute value, rounding up, and so on. No constructors, cannot be initialized, provides only static
1. Math Object1.1 Introduction Math object is a mathematical object that provides mathematical calculations of the data, such as obtaining absolute values, rounding up, and so on. No constructors, cannot be initialized, only static properties and
1. Math Object1.1 Introduction Math object is a mathematical object that provides mathematical calculations of the data, such as obtaining absolute values, rounding up, and so on. No constructors, cannot be initialized, only static properties and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.