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
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
This article mainly introduces the knowledge of the basic JavaScript type value-Number type, which has good reference value. Let's take a look at it below.
Overview
In JavaScript, numbers are represented in the IEEE754 format. Therefore, integers
ECMAScript operators. For more information about js learning, see 2.9.5. Addition operators.
Addition operators (plus signs and minus signs) are usually the simplest operators. However, in ECMAScript, each addition operator has many special
2.9.5. Addition OperatorsAddition operators (plus signs and minus signs) are usually the simplest operators. However, in ECMAScript, each addition operator has many special behaviors.1. Addition operators:Copy codeThe Code is as follows:Var iResult =
ECMAScript operator. If you are studying JavaScript, you can check the 2.9 operator.
2.9.1 unary Operators
The unary operator has only one parameter, that is, the object or value to be operated.
1. delete: delete references to previously defined
This article describes the attributes and methods of the Number object of the JavaScript native object. This article describes the syntax, MAX_VALUE, MIN_VALUE, NaN, and other attributes or methods for creating the Number object, for more
This article describes the attributes and methods of the Number object of the JavaScript Native Object. This article describes the syntax, MAX_VALUE, MIN_VALUE, NaN, and other attributes or methods for creating the Number object, for more
This article mainly introduces the mathematical operations in JavaScript. This article first explains some knowledge about mathematical operations, and then provides an example of operations. If you need a friend, you can refer to JavaScript,
Introduction to mathematical operations in JavaScript and mathematical operations in javascript
In JavaScript, mathematical operations can be achieved through two operations:
1. +,-, *,/, %, and other operators.2. Use the computing functions of the
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.