Introduction to POSITIVE_INFINITY in JavaScript

Source: Internet
Author: User
This article mainly introduces the use of POSITIVE_INFINITY value in JavaScript, which is the basic knowledge in JS learning. If you need it, refer to the special value that represents any value greater than Number. MAX_VALUE. This value is expressed as "infinite ". This value is similar to the infinity in its mathematics. For example, if everything is multiplied by POSITIVE_INFINITY, the result is POSITIVE_INFINITY, and any result divided by POSITIVE_INFINITY is zero.

Because POSITIVE_INFINITY is a constant, it is a read-only attribute.
Syntax

You can use the following syntax to access properties:

Var val = Number. POSITIVE_INFINITY;

Example:

Here is an example to illustrate the usage of this attribute:

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.