Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Objects
Number Object
Primitive Value Infinity
PROPERTY: Number::NEGATIVE_INFINITY
PROPERTY: Number::POSITIVE_INFINITY
NEGATIVE_INFINITY
This static, read-only property is a special value representing negative infinity, which is returned on overflow.
Syntax:
Number.
NEGATIVE_INFINITY
The
NEGATIVE_INFINITY
property behaves in the following ways:
Any positive value (including
POSITIVE_INFINITY
) multiplied by
NEGATIVE_INFINITY
is
NEGATIVE_INFINITY
.
Any negative number (including
NEGATIVE_INFINITY
) multiplied by
NEGATIVE_INFINITY
is
POSITIVE_INFINITY
.
Zero multiplied by
NEGATIVE_INFINITY
is
NaN
.
NaN
multiplied by
NEGATIVE_INFINITY
is
NaN
.
NEGATIVE_INFINITY
divided by any negative number except
NEGATIVE_INFINITY
is
POSITIVE_INFINITY
.
NEGATIVE_INFINITY
divided by any positive number except
POSITIVE_INFINITY
is
NEGATIVE_INFINITY
.
NEGATIVE_INFINITY
divided by either
NEGATIVE_INFINITY
or
POSITIVE_INFINITY
is
NaN
.
Any number divided by
NEGATIVE_INFINITY
is Zero.
POSITIVE_INFINITY
This static, read-only property is a special value representing infinity, which is returned on overflow.
Syntax:
Number.
POSITIVE_INFINITY
The
POSITIVE_INFINITY
property behaves in the following ways:
Any positive number (including
POSITIVE_INFINITY
) multiplied by
POSITIVE_INFINITY
is
POSITIVE_INFINITY
.
Any negative number (including
NEGATIVE_INFINITY
) multiplied by
POSITIVE_INFINITY
is
NEGATIVE_INFINITY
.
Zero multiplied by
POSITIVE_INFINITY
is
NaN
.
NaN
multiplied by
POSITIVE_INFINITY
is
NaN
.
POSITIVE_INFINITY
divided by any negative number, except
NEGATIVE_INFINITY
, is
NEGATIVE_INFINITY
.
POSITIVE_INFINITY
divided by any positive number, except
POSITIVE_INFINITY
, is
POSITIVE_INFINITY
.
POSITIVE_INFINITY
divided by either
NEGATIVE_INFINITY
or
POSITIVE_INFINITY
is
NaN
.
Any number divided by
POSITIVE_INFINITY
is Zero.
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information