Property Type (R)
Format Number.NEGATIVE_INFINITY
Commentary
Special value representing infinity; returned on overflow.
This value behaves slightly differently than mathematical infinity:
Any positive value, including POSITIVE_INFINITY, multiplied by POSITIVE_INFINITY is POSITIVE_INFINITY.
Any negative value, 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 value except NEGATIVE_INFINITY, is NEGATIVE_INFINITY.
POSITIVE_INFINITY, divided by any positive value 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.
Sample code - QC 2 JavaScript
outputs [0] = Number.POSITIVE_INFINITY;
Sample code - QC 3 JavaScript
function (__number outputNumber) main (__number inputNumber[2])
{
var result = new Object();
result.outputNumber = Number.POSITIVE_INFINITY;
return result;
}