YouTip LogoYouTip

Jsref Negative Infinity

body { font-family: Arial, sans-serif; line-height: 1.6; margin: 20px; } h1, h2, h3 { color: #333; } code { background-color: #f4f4f4; padding: 2px 5px; border-radius: 3px; font-family: monospace; } pre { background-color: #f4f4f4; padding: 10px; border-radius: 5px; overflow-x: auto; } .example { border: 1px solid #ddd; padding: 10px; margin: 10px 0; border-radius: 5px; } .note { color: #666; font-style: italic; } a { color: #0066cc; text-decoration: none; } a:hover { text-decoration: underline; } .browser-support img { height: 20px; margin-right: 5px; } table { border-collapse: collapse; width: 100%; margin: 10px 0; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } th { background-color: #f2f2f2; }

JavaScript NEGATIVE_INFINITY Property | Tutorial

Tutorial -- Learning is not just about technology, but also about dreams!

JavaScript Reference Manual

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

JavaScript NEGATIVE_INFINITY Property

JavaScript Number Object

Example

Return negative infinity:

Number.NEGATIVE_INFINITY;

Output:

-Infinity

Try it yourself Β»


Definition and Usage

The NEGATIVE_INFINITY property represents negative infinity.

The NEGATIVE_INFINITY property represents a value that is less than Number.MIN_VALUE.


Using Number.NEGATIVE_INFINITY

NEGATIVE_INFINITY is a static variable of the JavaScript Number object.

The calling method is: Number.NEGATIVE_INFINITY.

Calling this property with a custom Number object x (x.NEGATIVE_INFINITY) will return undefined:

Example

var x = 100;
x.NEGATIVE_INFINITY;

x output:

undefined

Try it yourself Β»


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the NEGATIVE_INFINITY property.


Syntax

Number.NEGATIVE_INFINITY;

Technical Details

Return Value: Negative infinity. This value is returned on overflow.
JavaScript Version: 1.1

More Examples

Example

Create a negative infinity number:

var n=(-Number.MAX_VALUE)*2;

n output:

-Infinity

Try it yourself Β»


JavaScript Number Object

← Jsref Number NanJsref Abs β†’